sChaine est chaîne
sur 30
//Chaîne de travail
idFic est
entier
//Identifiant du fichier
texte
//Affectation, du bon
alphabet au champ.
MONCHAMP..PoliceAlphabet = alphabetChinois
idFic = fOuvre("Fichier_Chinois.txt",foUnicode
foLecture)
sChaine = fLit(idFic, 30)
// un fichier UTF8 commence
par un entête de 2 octets
// Il fait supprimer ces deux
octets.
sChaine = sChaine[[3
A]]
// Les champs de Win dev gére
les caractéres ANSI
// Il faut donc convertir la
chaîne
MONCHAMP = UnicodeVersAnsi(AnsiVersUnicode(sChaine,alphabetUTF8))
fFerme(idFic)