Compressed File Character Conversion Across Different Code Pages
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The existing methods for transferring data between devices with different code pages are time-consuming, especially when dealing with large datasets, as they require character conversion of the entire file, which is labor-intensive and inefficient.
Innovation Solution
A computer-implemented method that compresses a file using algorithms like Huffman or Run-Length Encoding, converts characters from the source code page to the target code page based on frequency information, and then decompresses the file, reducing the workload by only converting characters in the compressed file rather than the entire file.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If character conversion is performed on the entire file before compression, then the target device can process the data in the correct code page, but the conversion time and computational workload become excessively large for terabyte-scale datasets
Solution Approach 1:
The patent applies preliminary compression to reduce the file size before character conversion. By compressing the original large file first, the system creates a smaller compressed representation that requires less time and computational resources to perform the subsequent character code page conversion, while still maintaining data integrity and compatibility
Solution Approach 2:
The patent segments the data processing into distinct phases: compression phase, conversion phase, and decompression phase. This segmentation allows the system to optimize each phase independently, performing conversion only on the compressed data structure rather than the full uncompressed dataset, thereby reducing overall conversion time
2Reliability
If character conversion is performed on the entire uncompressed file, then all characters are converted to the target code page, but the processing workload and memory requirements increase significantly
Solution Approach 1:
The system performs compression as a preliminary action before character conversion. This ensures that the conversion process operates on a reduced data size, maintaining conversion accuracy while improving processing efficiency by avoiding the need to convert every single character in the original large file
Solution Approach 2:
The patent changes the data representation parameters by compressing the file into a more compact form before conversion. This parameter change reduces the number of characters that need to be processed during conversion, thereby maintaining accuracy for the essential data while improving overall processing efficiency
Data Source
AI summary
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.


