PURPOSE: To discriminate the type of a character and to output a correct character code without being affected by a similar character within a single character type or between multicharacter types under the condition that a correct solution is obtained among candidates from dictionaries for each character type.
CONSTITUTION: In a processing section 23, a keyword is detected from the character code string obtained by recognizing a character string consisting of a plurality of characters as English alphabetic characters, numeric characters, Kana characters, and symbols, similar characters and non-similar characters are discriminated in the character string, a character code for non-similar character is identified, a character code for a similar character that could not be identified is identified, and based on the result a character code string is re- constructed. From this, under the condition that a correct solution is obtained among candidates selected from dictionaries for each character type, a character type is discriminated without being affected by similar character within a single character type and between multicharacter types, and a correct character code can be output.