Browse Prior Art Database

Technique to Provide NLS Code Page Conversion with Roundtrip Fidelity

IP.com Disclosure Number: IPCOM000110053D
Original Publication Date: 1992-Oct-01
Included in the Prior Art Database: 2005-Mar-25
Document File: 1 page(s) / 53K

Publishing Venue

IBM

Related People

Fandrick, FM: AUTHOR [+2]

Abstract

This article describes a technique for converting data between different code pages with roundtrip fidelity.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 57% of the total text.

Technique to Provide NLS Code Page Conversion with Roundtrip Fidelity

       This article describes a technique for converting data
between different code pages with roundtrip fidelity.

      When data is sent from a PC to a host the data must be
converted from the PC ASCII code page to the host EBCDIC code page.
In most cases this data is to be displayed on a PC.  There are many
products that support code page conversion but none take into account
the necessity to roundtrip the data.  Since the PC ASCII code pages
contain characters that do not exist in the host code page, when
individual bytes are converted a fill character is normally assigned
in place of the unmatched character.  In most cases a blank is used.
This means that if user A on a PC sends data to user B on
another PC, passing through a host with an incompatible code page
results in the corruption of the data.  If a user in Switzerland
sends a note containing German characters to another user by sending
the data to a host that contains a French code page, the result that
appears on the receiving user's PC will contain blanks instead of the
German characters.

      The solution is to provide a routine which considers roundtrip
fidelity.  The host code pages are defined with code points
representing graphic characters not used in character-based systems.
The routine accesses a table which matches up every PC ASCII code
point with an EBCDIC code point, including the PC ASCII ones for
which an...