php - utf8_general_ci convertion -


My script is using utf8_general_ci and I'm trying to move to another script that uses utf8_general_ci Does the problem have all my script stores, such as "AEIOUU" and the new script "ÃÆ'à ¢ â,¬Å¡Ãƒâ € šÃ,Â" im having characters problems like "I do Can you change that?

  $ data = utf8_encode ($ data);  

This will ensure that PHP understands that it is reading, and should maintain it, a UTF8 encoding, after that you can rewrite a file, database, etc. without problems should be able. By doing this I can solve this problem when languages ​​work with translation where I know that the source is UTF8 but PHP wants to do something else during the transition.

If this does not fix it, then try to run it on the body before sending it to your browser.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -