Forum Moderators: open

Message Too Old, No Replies

mysql encoding problem / question

support for multiple languages

         

daniel_o

5:25 pm on Oct 10, 2008 (gmt 0)

10+ Year Member



HI,

I run a service that lets peaople submit their sites with descriptions, titles etc.

The problem is they come from all over the world, and I'd need to support multiple languages.

I use UTF8 encoding (with general collatation), but it's not working well. For example when you insert spanish letters then it displays some weird chars.

I'm guessing the solution would be to create seperate table with different collatations:
ie.
spanish => utf8_spanish_ci
german =? utf8_german_ci
etc..
Correct?

And another question: is it possible to refresh and regain those corrupted characters?

Last question: how to distiguish with php what's the encoding of inserted data?

thanks.

coopster

5:12 pm on Oct 14, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



it displays some weird chars

Where? In the browser? What charset are you sending back with your Content-Type?