Jump to content
Sign in to follow this  
genmin

probleme de caratères spéciaux

Rate this topic

Recommended Posts

J'ai un problème avec les caractère spéciaux car ils sont bien interprété par l'explorer mais lorsque je veux l'inserrer dans un fichier texte ca fait un peu tache au milieu !!

Par exepmle "CUR" qui ce tranforme en "C & # 3 3 8 ; U R", pas cool

comment faire ??

genmin

Edited by genmin

Share this post


Link to post
Share on other sites

qu'est-ce qui SE transforme en quoi, par EXEMPLE, dans tes CARACTERES INTERPRETES ?

Share this post


Link to post
Share on other sites

désolé, j'ai modifié mon message car la aussi la page interprétait le code. j'ai du mettre des espaces pour que ca l'affiche :D

Share this post


Link to post
Share on other sites

de quoi pars-tu vers quoi ? à l'aide de quoi (script, autres ?) ?

car dans le langage html tous les ascii spéciaux sont transcrits pour éviter les collisions de traduction (signes communs aux scripts ou autres) ainsi que pour assurer la compatibilité internationale.

précises un peu le cheminement des infos ...

Share this post


Link to post
Share on other sites

je veux passer de donné inserrer dans une table sql par un fomulaire, dans un fichier txt.

Mais je crois avoir trouvé, avec la fonction :

htmlentities($txt);

Qu'es-ce-que vous en pensez?

Share this post


Link to post
Share on other sites

htmlentities ou htmlspecialchars, permettent de convertir les caractères spéciaux html.

Anonymus.

Share this post


Link to post
Share on other sites

Que faire, j'ai l'impression que certain caractères sont bien interprété comme le "²" mais pourquoi pas mon "" ???

Encore plus étrange le minuscule lui fonctionne ???? :wacko::wacko:

Edited by genmin

Share this post


Link to post
Share on other sites

Le tableau des caractères spéciaux :

$spec_car=array(
"\"",""",
"&","&",
"<","<",
">",">",
" "," ",
"¡","¡",
"¢","¢",
"£","£",
"€","¤",
"¥","¥",
"Š","¦",
"§","§",
"š","¨",
"©","©",
"ª","ª",
"«","«",
"¬","¬",
"­","­",
"®","®",
"¯","&masr;",
"°","°",
"±","±",
"²","²",
"³","³",
"Ž","´",
"µ","µ",
"¶","¶",
"·","·",
"ž","¸",
"¹","&supl;",
"º","º",
"»","»",
"Œ","¼",
"œ","½",
"Ÿ","¾",
"¿","¿",
"À","À",
"Á","Á",
"Â","Â",
"Ã","Ã",
"Ä","Ä",
"Å","Å",
"Æ","&Aelig",
"Ç","Ç",
"È","È",
"É","É",
"Ê","&Ecric;",
"Ë","Ë",
"Ì","Ì",
"Í","Í",
"Î","Î",
"Ï","Ï",
"Ð","ð",
"Ñ","Ñ",
"Ò","Ò",
"Ó","Ó",
"Ô","Ô",
"Õ","Õ",
"Ö","Ö",
"×","×",
"Ø","Ø",
"Ù","Ù",
"Ú","Ú",
"Û","Û",
"Ü","Ü",
"Ý","Ý",
"Þ","þ",
"ß","ß",
"à","&agrace;",
"á","á",
"â","â",
"ã","ã",
"ä","ä",
"å","å",
"æ","æ",
"ç","ç",
"è","è",
"é","é",
"ê","ê",
"ë","ë",
"ì","ì",
"í","í",
"î","î",
"ï","ï",
"ð","ð",
"ñ","ñ",
"ò","ò",
"ó","ó",
"ô","ô",
"õ","õ",
"ö","ö",
"÷","÷",
"ø","ø",
"ù","ù",
"ú","ú",
"û","û",
"ü","ü",
"ý","ý",
"þ","þ",
"ÿ","ÿ",
);

Il ne te reste plus qu'à faire la petite fonction qui remplace l'un par l'autre ;)

Anonymus.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...