Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2006
    Posts
    124
    Thanks
    1
    Thanked 0 Times in 0 Posts

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

    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 "í"...
    Last edited by davidc2; 03-16-2009 at 09:51 PM.

  • #2
    Senior Coder
    Join Date
    Aug 2005
    Posts
    1,119
    Thanks
    2
    Thanked 1 Time in 1 Post
    This thread discusses your problem exactly. Give it a read:
    http://www.daniweb.com/forums/thread146395.html

  • Users who have thanked thesavior for this post:

    davidc2 (03-17-2009)

  • #3
    Regular Coder
    Join Date
    Jul 2006
    Posts
    124
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •