php - Unicode Characters issue in Cakephp and Mysql -


I have a site that was implemented for my customer in Cakephp 2 years ago. At that time I was not aware that this site will be used worldwide. Special characters of different countries have been used on the site. At that time the cakepip utf8 option was not enabled and characters are saved in encoded form such as ?? In the database.

Now when we try to download CSV these characters have caused problems and did not appear correctly in CSV.

"text">

You have to ensure 3 things -

  1 'encoding' = & gt; Enable 'utf8', 'Database Settings' on database settings on 'app / config / database.php` 2. Table column collation should be set to' utf8_general_ci 'or' utf8_unicode_ci`. 3. The HTL page character set must be set as `utf-8`    

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -