View Full Version : How can I echo exactly whats a mysql field?

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

The field uses latin_swedish_ci.

How can I echo exactly whats on the field... Right not it outputs stuff like "�" for ""...

03-17-2009, 01:16 AM
This thread discusses your problem exactly. Give it a read:

03-17-2009, 11: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.