Method for compressing Chinese text supporting ANSI encode
暂无分享,去创建一个
The present invention provides a compression method of Chinese text and a corresponding decompression method, which support ANSI codes. The compression method comprises the following steps: according to the position of the characters of the Chinese text to be compressed in the character code table, the characters of the Chinese text to be compressed are encodes by 1 or more than 1 bytes; the number of the bytes is marked in the generated code word; wherein, the character code table comprises the characters which are arranged in the descending order according to the frequency of occurrence of the characters of the Chinese text to be compressed; the generated code word is written into a compressed file. The compression method maintains the semantic characteristics of Chinese data flow to the greatest extent, and can be used with various compression algorithms and compression software.