NAME [Toc] [Back]
sconv - hp9000 utility for Simplified-Chinese code code-converter
SYNOPSIS [Toc] [Back]
sconv num infile outfile
sconv -n num -f file_of_namelist
DESCRIPTION [Toc] [Back]
sconv is used to do code conversion from GB internal code to
Big5/Unicode(UCS2 or UTF8) internal code and vice versa, also from
Big5 internal code to GBK code and vice versa.
It provides three processing modes.
Mode (1) : sconv
The first one is an interactive menu mode. Just invoke the command.
It will display the main menu, and prompt you for which kind of code
conversion you need(whether it is from GB to Big5, GB to Unicode, or
Big5 to GBK). And then, it will prompt you for your input filename and
Mode (2) : sconv num infile outfile
The second is used to convert one GB or Big5 code text file to the
other code type text file in command mode. The infile stands for the
input filename, outfile for output filename. And num is the selection
number you can find out from the interactive menu mode. Below is the
description of them :
num = 1 : From GB code to Big5 code.
2 : From GB code to Unicode's Canonical Form(UCS2).
3 : From Big5 code to GB code.
4 : From Unicode's Canonical Form(UCS2) to GB code.
5 : From Big5 code to GBK code.
6 : From GBK code to Big5 code.
7 : From GB code to Universal Trans. Format-8(UTF8).
8 : From Universal Trans. Format-8(UTF8) to GB code.
Mode (3) : sconv -n num -f file_of_namelist
- 1 - Formatted: January 24, 2005
The third is used to convert many files with one sconv 1 command. You
have to create a file with all the filenames you want to convert. Let
the file name be file_of_namelist , and the format of the file is :
Then use the command to convert all those files in batch mode. Also,
same as Mode (2), num is the selection number you can find from the
interactive menu mode. Notice that you can only do one kind of
conversion to all the files in file_of_namelist , and there is no
output filenames, all the files will be put into original file names
which you specify in file_of_namelist.
EXAMPLE [Toc] [Back]
sconv 2 file_in file_out , converts a text file from Big5 to GB
sconv -n 2 -f file_list , converts all the files in file_list from
Big5 to GB
NOTICE [Toc] [Back]
By default, sconv maps non-mapped characters to spaces.
LOG FILE [Toc] [Back]
AUTHOR [Toc] [Back]
sconv was developed by AAA/TC-ESG. May 1998
- 2 - Formatted: January 24, 2005 [ Back ]