KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/mandarintools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/mandarintools/javaconverter.html
<HTML>
<HEAD>

<TITLE>Java Chinese Encoding Converter</TITLE>
</HEAD>
<BODY>

<TABLE ALIGN=CENTER WIDTH=700>
<TR>
<TD>
<CENTER><H2>Chinese Encoding Converter</H2></CENTER>

   First, download the <A
HREF="http://www.mandarintools.com/download/zhcode.zip"> actual
program </A> (Last updated June 5, 2004).  Unzip it to get the file
zhcode.jar.  Get and install the <A
HREF="http://java.sun.com/products/jdk/1.2/jre/index.html"> Java
Runtime Environment 2</A>.

<P>
After installation, you can set up a short cut on the desktop to the
zhcode.jar file or add it to your start menu.  Now you can click on
it.  It can also be started from the command line by typing "javaw
-jar zhcode.jar".
<P>
  After starting the program, a small window should appear that will
allow you to choose the encoding and name of the file you want to
convert and the encoding and name of the converted file.  After 
selecting these, click on "Convert File" and the file will be
converted.
<P>
There is also a way to run the converter from the command line.

<pre>
Usage: java zhcode -[gbc8ui2nk][gbc8uts2nk] in_file out_file
g = GB2312, b = Big5, c = CNS11643, 8 = UTF-8, u = Unicode,
t = Unicode (traditional characters), h = HZ,
s = Unicode (simplified characters),
i = ISO-2022-CN, 2 = ISO-2022-CN-GB, n = ISO-2022-CN-CNS,
k = GBK
</pre>

<P>
So to convert a file from UTF-8 to Unicode (UTF-16)
<P>
java -cp zhcode.jar zhcode -8u infile.txt outfile.txt
<P>
   You can also download the <A href="download/zhcodeSRC.zip">source code
</A> for the converter.  The compiled and source code version of zhcode
are free for non-commercial use.  Commercial use requires a license.
Contact me as indicated below for more information.

<P>
  Please visit my <A HREF="contact.html">contact page</A> with questions or comments.


</TD>
</TR>
</TABLE>


</BODY>
</HTML>

Anon7 - 2021