Jump to content

foreign characters


obay

Recommended Posts

Hi,

 

I have a problem with foreign characters. It doesn't get saved in the database as it's supposed to be. For example..

 

The text ひらがな is saved in the database as ã²ã‚‰ãŒãª .

 

- database table encoding is already UTF-8

- server and php already set up to be full UTF-8

 

As per my investigation...the query before being sent to database is correct, e.g.

 

UPDATE table SET column='ひらがな' WHERE blah blah

 

But it's saved incorrectly in the db. Also, i tried an

 

fwrite($fp, $text);

 

and what gets written is incorrect also.

 

I am very confused. Can somebody help?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/164075-foreign-characters/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.