Character conversion
AssigneeInternational Business Machines Corporation
InventorsYao BJ Chen, Jian Gang Deng, Chao PX Li, He Lei Liu
Life of this patent
Estimating the term…
Abstract
Methods, devices, and computer programs are provided for character conversion. An original file is compressed, for instance, by a source or target device, to obtain a compressed file. Then, characters in the compressed file are converted from a source code page to a target code page to obtain a converted compressed file. The converted, compressed file may, where applicable, be sent to a target device. Also, the target device may decompress the converted compressed file to obtain a file in the target code page.
Claims20
A computer-implemented method, comprising:
- compressing, by one or more processors, an original file to obtain a compressed file, the compressed file comprising compression indicators representing character compression information defined, in part, by frequency of characters in the original file;
- and
- converting characters in the compressed file from a source code page format to a target code page format to obtain a converted compressed file, wherein the converting characters in the compressed file comprises locating characters with reference to the compression indicators representing character compression information, and changing on a per-character basis code page numbers representing the characters in the compressed file from the source code page format to the target code page format, the source code page format and the target code page format being different code page formats.
A device comprising:
- a processing unit;
- and
- a memory coupled to the processing unit and storing instructions thereon, the instructions, when executed by the processing unit, performing a method including:
- compressing, by one or more processors, an original file to obtain a compressed file, the compressed file comprising compression indicators representing character compression information defined, in part, by frequency of characters in the original file;
- and
- converting characters in the compressed file from a source code page format to a target code page format to obtain a converted compressed file, wherein the converting characters in the compressed file comprises locating characters with reference to the compression indicators representing character compression information, and changing on a per-character basis code page numbers representing the characters in the compressed file from the source code page format to the target code page format, the source code page format and the target code page format being different code page formats.
A computer program product for processing a compressed file, the computer program product comprising:
- a computer-readable storage medium having program instructions embodied therewith, the program instructions being executable by a processing unit to cause the processing unit to perform a method comprising:
- compressing, by one or more processors, an original file to obtain a compressed file, the compressed file comprising compression indicators representing character compression information defined, in part, by frequency of characters in the original file;
- and
- converting characters in the compressed file from a source code page format to a target code page format to obtain a converted compressed file, wherein the converting characters in the compressed file comprises locating characters with reference to the compression indicators representing character compression information, and changing on a per-character basis code page numbers representing the characters in the compressed file from the source code page format to the target code page format, the source code page format and the target code page format being different code page formats.
Dependencies are inferred from the claim text.