A
Albretch Mueller
Sometime ago I coded some methods to charset re-encoding. Say you get
files in kirillic, “KOI8-R” and you want them as UTF-8
What I did was basically opening an InputStreamReader(FileInputStream
FIS, String aEncoding1) and an OutputStreamWriter(FOS, “UTF-8”) and
went InputStreamReader.read(char[] chrBffr) and
OutputStreamWriter.write(chrBffr, 0, iRdByts) in a while loop till it
hit an EOF
That works just fine, yet I wonder if there are better/faster ways to
do that using channels/memory mapped files
Also where can you get actual files with different types fo encodings
to test these methods.
Thanks
lbrtchx
{comp.lang.java.programmer}
files in kirillic, “KOI8-R” and you want them as UTF-8
What I did was basically opening an InputStreamReader(FileInputStream
FIS, String aEncoding1) and an OutputStreamWriter(FOS, “UTF-8”) and
went InputStreamReader.read(char[] chrBffr) and
OutputStreamWriter.write(chrBffr, 0, iRdByts) in a while loop till it
hit an EOF
That works just fine, yet I wonder if there are better/faster ways to
do that using channels/memory mapped files
Also where can you get actual files with different types fo encodings
to test these methods.
Thanks
lbrtchx
{comp.lang.java.programmer}