Nethence Documentation Lab Webmail Your IP BBDock  


Those documents are obsolete, please use the Nethence Documentation instead.

HomeUnixWindowsOracleObsoleteHardwareDIYMechanicsScriptsConfigsPrivate

File format encoding
 
 
UTF8 to ISO-8859-1
Convert file format UTF-8 to ISO-8859-1,
yum install recode
cp filename filename.dist
recode -l
recode UTF-8..ISO-8859-1 filename
Note. there's also iconv,
#iconv --list
#iconv -f UTF-8 -t ISO-8859-1 filename1 > filename2
Note. there's also perl,
#perl -MEncode -lne 'print encode("ISO-8859-1", decode("utf8", $_))' filename1 > filename2
 
Convert UTF-8 chararacters which are printed on a ISO-8859-1 terminal to ISO-8859-1 characters (sed command),
s/é//g;
s/ê//g;
s/è//g;
s/ë//g;
s/ù//g;
s/•//g;
s/o\/oo/E/g;
s/î//g;
s/EUR/A/g;
s/ô//g;
s/û//g;
s/ï//g;
s/| //g;
s/â//g;
s/`/A/g;
s/ //g;
s/"/O/g;
Note. to find other substitutions, search into the file for '' occurences
 
 
References
UTF-8 at grml
ImageMagick convert
RTF2HTML convertor
Excel to HTML converter
 

Last update: Jul 18, 2010