• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mysql/accents problem

#1
[eluser]Unknown[/eluser]
Hello,

I have a problem with mysql and the accents if i write a sql query with accents like

Code:
INSERT INTO 'xxx' VALUES('óíúíñÑ')

in the database write '??????' what can i do!!??


Thanks!

#2
[eluser]cmgmyr[/eluser]
Looks like you will have to change the collation of your database/table. Try using: utf8_general_ci

#3
[eluser]Unknown[/eluser]
Thanks, i found the solution:

Change:
Code:
<html>

with:

Code:
<? header('Content-Type: text/html; Charset=UTF-8');  ?>
<html lang="es">

Thanks all
Edgar Nadal

#4
[eluser]Juan Velandia[/eluser]
[quote author="EdgarN" date="1219362759"]Thanks, i found the solution:

Change:
Code:
<html>

with:

Code:
<? header('Content-Type: text/html; Charset=UTF-8');  ?>
<html lang="es">

Thanks all
Edgar Nadal[/quote]

Hello Edgard, wich file should I work on to make this change? thanks


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.