khaled
Membre récent

Hors-Ligne
Sexe: 
Messages: 42

|
ahhhhhhhhhhhhhhhhhwouuuuuuuuuuuuuuuuuuu c confirmé !! php is hard !!
bon je crois que ca ca pourais me servir :
<?php function latin9_to_utf8($latin9str) { // replaces utf8_encode() $trans = array("¤"=>"€", "¦"=>"Š", "¨"=>"š", "´"=>"Ž", "¸"=>"ž", "¼"=>"Œ", "½"=>"œ", "¾"=>"Ÿ"); $wrong_utf8str = utf8_encode($latin9str); $utf8str = strtr($wrong_utf8str, $trans); return $utf8str; } function utf8_to_latin9($utf8str) { // replaces utf8_decode() $trans = array("€"=>"¤", "Š"=>"¦", "š"=>"¨", "Ž"=>"´", "ž"=>"¸", "Œ"=>"¼", "œ"=>"½", "Ÿ"=>"¾"); $wrong_utf8str = strtr($utf8str, $trans); $latin9str = utf8_decode($wrong_utf8str); return $latin9str; } ?>
mais parrait'il qu'il a une erreur !! je ne sais pas on poura pas changer le code d'une facon ou avoir : replace é ==> é
enfin je sais pas trop essayer de 'aider sur ca svp |