Closed Thread
Results 1 to 4 of 4

Thread: Inserting french characters in mySQL DB table

  1. #1
    steph03 is offline Newbie
    Join Date
    Aug 2009
    Posts
    8
    Rep Power
    0

    Inserting french characters in mySQL DB table

    Hello,

    I am having a major issue with inserting french characters in my mySQL DB. The french charaters display perfectly fine on the client-side page. If I edit a field directly in the phpMySQL control panel, the french characters also displays correctly.
    But if I insert or update fields from a form on a webpage (using PHP), it converst the special french characters into something not readable. For example, à becomes à Â.

    I feel as if I've tried it all... any ideas?? here are the variables set on my server for phpMySQL:
    *********************************************
    character set client utf8
    (Global value) latin1
    character set connection utf8
    (Global value) latin1
    character set database latin1
    character set filesystem binary
    character set results utf8
    (Global value) latin1
    character set server latin1
    character set system utf8
    character sets dir /usr/share/mysql/charsets/
    collation connection utf8_general_ci
    (Global value) latin1_swedish_ci
    collation database latin1_swedish_ci
    collation server latin1_swedish_ci
    ********************************************

    Any ideas or suggestions would be much appreciated!

    Thanks,
    Steph

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Mar 2009
    Posts
    1,375
    Rep Power
    24

    Re: Inserting french characters in mySQL DB table

    I remember when I installed MySql there was a question which charset it should use, and I chose UTF8 for eveyrthing. I see some things are latin1 or else, I don't know can these support french characters. Maybe not?

    I think those settings can be changed to UTF8 using the administration tool.

  4. #3
    LiLMsNinja's Avatar
    LiLMsNinja is offline Learning Programmer
    Join Date
    May 2008
    Posts
    42
    Rep Power
    0

    Re: Inserting french characters in mySQL DB table

    I'm not sure about mySQL but you are going to want the equivelant to nvarchar datatype.

  5. #4
    phillw's Avatar
    phillw is offline Learning Programmer
    Join Date
    Aug 2009
    Location
    Northwest England (UK)
    Posts
    82
    Blog Entries
    1
    Rep Power
    0

    Re: Inserting french characters in mySQL DB table

    There is a brief, but informative thread on the MySQL site on just this occurance ...

    MySQL :: Problem inserting german and french characters

    Hope that helps.

    Regards,

    Phill.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. HELP in inserting records in a table
    By sydneytot in forum PHP Development
    Replies: 3
    Last Post: 09-24-2011, 07:35 PM
  2. MySQL account table
    By lol33d in forum PHP Development
    Replies: 2
    Last Post: 09-21-2011, 03:57 PM
  3. Inserting HTML into MySQL Database Problems
    By alirezan in forum PHP Development
    Replies: 1
    Last Post: 03-17-2011, 02:13 AM
  4. JOOMLA French Language MySQL Database Update Character Errors!!
    By equatorlounge in forum Database & Database Programming
    Replies: 4
    Last Post: 02-07-2010, 11:41 PM

Tags for this Thread

Bookmarks

Posting Permissions

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