...

How can I echo exactly what´s a mysql field?

davidc2
03-16-2009, 08:45 PM
I have special characters on a table (á, é, í, ñ... and so...), they are not encoded, i.e. "á" is "á", not "á", I´m just doing an Insert into the database with the characters as they are...

The field uses latin_swedish_ci.

How can I echo exactly what´s on the field... Right not it outputs stuff like "�" for "í"...

thesavior
03-17-2009, 12:16 AM
This thread discusses your problem exactly. Give it a read:
http://www.daniweb.com/forums/thread146395.html

davidc2
03-17-2009, 10:15 PM
Thanks, the "(in Firefox 3) go to View -> Character Encoding" suggestion from that linked helped me figure out what the output was, then using utf8_encode($string), did the trick.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum