Database with problems for accentuation [duplicate]

1

The Mysql bank did not support accenting, I changed the encoding to the utf8_general_ci pattern and now started to display the data correctly on the client, but even then the words are bogged down like you get yourself, and if I try to make an accent directly errors occur on the bank. How can I solve this problem?

    
asked by anonymous 13.04.2015 / 04:09

1 answer

2

Next, to make the charset configuration of mysql + php until the HTML view has to configure the file my.ini or my.cnf depending on the platform

[mysql]
default-character-set=utf8

the php.ini file

[php]
default_charset = "UTF-8"

In HTML you can use the

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

or set the apache configuration httpd.conf file the

AddDefaultCharset utf-8
    
13.04.2015 / 13:43