Re: FW: Query !!

From: Jungshik Shin (jshin@mailaps.org)
Date: Wed Nov 28 2001 - 15:25:13 EST


> -----Original Message-----
> From: VANDANA AGRAWAL [mailto:vandanaagrawal@yahoo.com]

> I need to upload a .txt file having chinese characters
> to mainframes.
> Using windows2000 i am able to see the chinese
> characters in the notepad, but when i upload it to
> mainframes and see the same file in chinese Emulator
> the chinese characters are lost.

  In Win 2k, notepad saves your file in UTF-16LE (little endian)
with BOM (byt order mark) which your Chinese terminal emulator doesn't
understand. You have to convert the file saved by notepad to one of
encodings/codepages understood by your terminal emulator (GB2312, Big5,
or UTF-8 if it's Unicode-enabled). The easiest way is (if you have MS-Word
2k/2002), open the file in MS-Word and save it as a plain text file. MS
Word will ask you which codepage/encoding to use and you can pick one
of encodings/codepages understood by your Chinese terminal emulator.
Otherwise, you can convert using one of converters. native2ascii in JDK
(you have to daisy-chain it to convert from UTF-16LE to GB2312/Big5:
 see http://java.sun.com/products/jdk/1.1/docs/guide/intl/index.html )
iconv (if your 'mainframe' is a SUS98 compliant Unix host), uniconv
(that comes with Gaspar Sinai's free unicode editor Yudit) and Basis
Tech's uniconv (and perhaps GNU recode and tcs that comes with Plan9.
tcs may not be up to date with the newest version of Unicode, though)
are among those converters.

  Jungshik Shin



This archive was generated by hypermail 2.1.2 : Wed Nov 28 2001 - 16:20:00 EST