OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/W, TP1/Client/P
Code conversion using a code mapping table links to CommuniNet to convert gaiji and other codes into specific code character strings. Those codes are converted in the same way as performing conversion without using a code mapping table.
If a code mapping table does not contain a code to be converted, processing is performed in the same way as performing conversion without a code mapping table. An illegal code detected is considered as an error.
- Organization of this subsection
- (1) Scope
- (2) Usage
- (3) Notes on using a code mapping table
The character code converter can convert character codes covered in CommuniNet.
When using the converter, issue and call functions in the following order.
- Start of character code conversion
dc_clt_codeconv_open()
- Execution of character code conversion (Conversion can be executed two or more times)
dc_clt_codeconv_exec()
- Termination of character code conversion
dc_clt_codeconv_close()
Once character code conversion is started (dc_clt_codeconv_open()), you can execute character code conversion (dc_clt_codeconv_exec()) two or more times until you terminate the conversion (dc_clt_codeconv_close()).
(3) Notes on using a code mapping table
- The use of this converter requires a CommuniNet code mapping table. Use the CommuniNet code mapping utility to create a code mapping table, then use the converter.
- You cannot use a code mapping table unless you first save the table using the CommuniNet code mapping utility after the installation of CommuniNet. Before using the converter, use the CommuniNet code mapping utility to save a code mapping table.
- The filename of a CommuniNet code mapping table must be CMAPEX.TBL. Before using the converter, store the code mapping table under a Windows directory.
- The processing by the character code converter does not reflect any changes made in a code mapping table by the CommuniNet code mapping utility during processing.
- You cannot save error logs and UAP trace information for the character code convert.
- Issue the function for starting character code conversion (dc_clt_codeconv_open() or CBLDCUTL('CNVOPN ')) only once and then execute character code conversion (dc_clt_codeconv_exec() or CBLDCUTL('CNVEXEC ')). Do not issue the function for starting character code conversion more than once to prevent memory shortage. If you issue two or more functions, issue one function for terminating character code conversion (dc_clt_codeconv_close() or CBLDCUTL('CNVCLS ') for each of the issued functions.
All Rights Reserved. Copyright (C) 2006, 2009, Hitachi, Ltd.