dimanche 28 juin 2015

character issue utf-8 lamp centos

after installation of LAMP on centos, every work fine but show a ptoblem with character, every letters such as "is" "u" "ò" and other classic characters are replaced by "?", frequently recurring problem with UTF-8.

so i started this setting :

**http.conf** : AddDefaultCharset utf-8


in **php.ini** : default_charset = "utf-8"
mbstring.internal_encoding=utf-8
mbstring.http_output=UTF-8
mbstring.encoding_translation=On
mbstring.func_overload=6

**my.conf**   character_set_server=utf8    

**in html php file**: <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

and finally on /etc/sysconfig/i18n with this code :

default setting:

LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"

my setting:

LANG="it_IT.UTF-8"
SYSFONT="latarcyrheb-sun16"

italian is my language , after this also show the command linux ""locale ""

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

if you show not change the language , why ??

Aucun commentaire:

Enregistrer un commentaire