According to the character
conversion method and the program product, a binary integer value serves as an index between a to-be-confirmed character and a target conversion character or a target conversion
phrase, and whether a head character has the target length of the target conversion character or the target conversion
phrase corresponding to escape or not is marked according to different digits of a binary sequence; whether the
convertible characters or the
convertible phrases possibly needing to be converted exist in the to-be-confirmed characters or not is quickly determined, the process that traversal matching is carried out on the characters one by one in a conventional technical scheme is reduced, and the search hit range of the characters or the phrases is reduced. After it is confirmed that the possible
convertible characters or convertible phrases exist, whether target conversion characters or target conversion phrases corresponding to the to-be-confirmed characters exist or not is searched in the
type conversion instance for each target length. Therefore, the escape search frequency is reduced, the performance is improved, and the use scene of rapid production conversion is met.