The application discloses a
processing method and related device for rare character garbled code in a
data file, and relates to the field of
data recovery, which comprises:
character coding of each Chinese character, each
character coding of Chinese character is processed by query, the query
processing comprises: according to the arrangement order of the bytes included in the
character coding, each
byte is sequentially taken as a current
byte, the coding range in which the
byte group composed of the current byte and the byte before the current byte falls is determined, if it falls into the garbled code range, the Chinese character is determined as garbled code, and each byte before the current byte is extracted; the continuously arranged garbled code is determined as a garbled code group, the extracted each byte of each garbled code group and the high-frequency rare character words included in the preset high-frequency rare character word
library are processed by using an association
rule mining algorithm, the rare character word corresponding to the garbled code group is obtained, and the garbled code group is replaced by the rare character word corresponding to the garbled code group. The application avoids the influence of the
data file use by these garbled codes.