Disparition des accent sur une application en iso-8859-1 depuis activation mbstring en UTF-8
Bonjour,
J'ai un soucis qui doit surement venir de l'encodage.
Sur le serveur web (easyphp 1.8... tout guez) de mon entreprise, nous avons plusieurs application web en intranet encodées en ISO-8859-1.
Je développe actuellement une application en UTF-8, j'ai donc activé les valeurs suivantes dans le "php.ini" :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
[mbstring]
mbstring.language = UTF-8
; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
;mbstring.internal_encoding = EUC-JP
mbstring.internal_encoding = UTF-8
; http input encoding.
;mbstring.http_input = auto
mbstring.http_input = UTF-8
; http output encoding. mb_output_handler must be
; registered as output buffer to function
;mbstring.http_output = SJIS
mbstring.http_output = UTF-8
; enable automatic encoding translation accoding to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
; portable libs/applications.
;mbstring.encoding_translation = Off
mbstring.encoding_translation = On
; automatic encoding detection order.
; auto means
;mbstring.detect_order = auto
mbstring.detect_order = auto
; substitute_character used when character cannot be converted
; one from another
;mbstring.substitute_character = none;
mbstring.substitute_character = none;
; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
;mbstring.func_overload = 0
mbstring.func_overload = 0 |
Le problème est que maintenant quand j'insère des données dans les anciennes applications encodées en ISO-8859-1, les caractères accentués sont tous supprimer.
Avez vous une idée d'où provient le problème ?
Cordialement