View Single Post
Old 01.12.2005, 17:17   #3
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

PPL, do not convert from Unicode to ANSI before file processing. Just use this:
...
open($FHIN,"<:raw:encoding(utf16le)",$ai_in_dir."/".$ai_fname);
open($FHOUT,">:raw:encoding(utf16le)",$ai_out_dir. "/".$ai_fname);
...
This is full working part of my perl-scripts.
If u want to create a LA2-unicode file, plz write first:
#open...
printf $FHOUT chr(0xFEFF);
#write...
#close...
kvoxi is offline