Hi,
I am deling with files containing french accentuated chars that can be stored in IBM-850 or ISO8859-1 code set and I discovered some mysterious things.
To talk simple, here is a script called try.ksh that rises up th problem :
root:/tmp:cat try.ksh
echo $LANG
print "à" |od -xc
LANG=fr_FR.IBM-1252@euro
echo $LANG
print "à" |od -xc
executin the script
root:/tmp:./try.ksh
fr_FR.IBM-1252@euro
0000000 850a
à \n
0000002
fr_FR.IBM-1252@euro
0000000 260a
& \n
0000002
root@cronos:/tmp:
Hexdecimal codin of 'à' changes after assigning LANG the same value 'fr_FR.IBM-1252@euro'
Has anyone undersatnding what is happening ?
Ali
I am deling with files containing french accentuated chars that can be stored in IBM-850 or ISO8859-1 code set and I discovered some mysterious things.
To talk simple, here is a script called try.ksh that rises up th problem :
root:/tmp:cat try.ksh
echo $LANG
print "à" |od -xc
LANG=fr_FR.IBM-1252@euro
echo $LANG
print "à" |od -xc
executin the script
root:/tmp:./try.ksh
fr_FR.IBM-1252@euro
0000000 850a
à \n
0000002
fr_FR.IBM-1252@euro
0000000 260a
& \n
0000002
root@cronos:/tmp:
Hexdecimal codin of 'à' changes after assigning LANG the same value 'fr_FR.IBM-1252@euro'
Has anyone undersatnding what is happening ?
Ali