Database with problems for accentuation

Asked

Viewed 222 times

1

The Mysql database did not have accentuation support, I changed the encoding to the utf8_general_ci standard and now started to display the data correctly in the client, but still the words get bugged type You stay You, and if I try to make an accent directly on the bank errors occur. How can I solve this problem?

  • I’m no expert, but I do what I can!! In my BD the words also get "bugged", but this is no problem, because at echo time you only need to put a http-equiv <meta="Content-Type" content="text/html;charset=utf-8" />... At least with me it solves!

1 answer

2

next, p/ do the charset configuration from mysql+php until the HTML view has to configure the my.ini or my.cnf file depending on the platform

[mysql]
default-character-set=utf8

the php.ini file

[php]
default_charset = "UTF-8"

in HTML you can use the tag

<http-equiv="Content-Type" content="text/html; charset=utf-8">

or set in the apache configuration httpd.conf file the parameter

AddDefaultCharset utf-8

Browser other questions tagged

You are not signed in. Login or sign up in order to post.