Affichage code ascii

Résolu/Fermé
Scoleproj Messages postés 231 Date d'inscription lundi 22 septembre 2008 Statut Membre Dernière intervention 8 août 2022 - 27 déc. 2009 à 03:22
Scoleproj Messages postés 231 Date d'inscription lundi 22 septembre 2008 Statut Membre Dernière intervention 8 août 2022 - 27 déc. 2009 à 18:01
Bonjour,
j'ai un probleme avec l'affichage du code ascii des caracteres ce situant dans l'intervalle[128-255]
par exemple en voulant afficher le code ascii de "é"
/* char c;
~~~~~~~~~~
printf("--->%d \n",c);*/
-----------------------------
voici ce que j'obtient
--->-61
--->-87
Pourtant sa affiche bien le code ascii des caracteres ascii[0-128].

A voir également:

5 réponses

Enregistre le, iso8859-1 ou -2 par exemple
2
Scoleproj Messages postés 231 Date d'inscription lundi 22 septembre 2008 Statut Membre Dernière intervention 8 août 2022 26
27 déc. 2009 à 18:01
Ok!,sa m'affiche bien le code que je veux :))
Grand Merci a toi "le pere!
Bonne continuation.
0

Discussions similaires