A data processing apparatus comprising: an operation unit ; an input unit for inputting document data; character recognition means for performing (S707), on the document data input by the input unit, character recognition using a specified language type; document name setting means for setting a document name of the document data input by the input unit ; characterized in that the data processing apparatus further comprises: control means for controlling (S708) the document name setting means so that a character string recognized by the character recognition means is included in the document name in a case that a first character encoding scheme corresponding to the specified language type is compatible with a second character encoding scheme corresponding to a display language type that is set in a language type setting in the operation unit for display on an operation screen; display means for displaying, on the operation screen of the operation unit and by the second character encoding scheme, the document name , in which the recognized character string is included, set by the document name setting means; and wherein, in a case that the first character encoding scheme is not compatible with the second character encoding scheme, the character string recognized from the input document data is not used (S711) in the document name of the input document data by the document name setting means. an operation unit ; an input unit for inputting document data; character recognition means for performing (S707), on the document data input by the input unit, character recognition using a specified language type; document name setting means for setting a document name of the document data input by the input unit ; characterized in that the data processing apparatus further comprises: control means for controlling (S708) the document name setting means so that a character string recognized by the character recognition means is included in the document name in a case that a first character encoding scheme corresponding to the specified language type is compatible with a second character encoding scheme corresponding to a display language type that is set in a language type setting in the operation unit for display on an operation screen; display means for displaying, on the operation screen of the operation unit and by the second character encoding scheme, the document name , in which the recognized character string is included, set by the document name setting means; and wherein, in a case that the first character encoding scheme is not compatible with the second character encoding scheme, the character string recognized from the input document data is not used (S711) in the document name of the input document data by the document name setting means. control means for controlling (S708) the document name setting means so that a character string recognized by the character recognition means is included in the document name in a case that a first character encoding scheme corresponding to the specified language type is compatible with a second character encoding scheme corresponding to a display language type that is set in a language type setting in the operation unit for display on an operation screen; display means for displaying, on the operation screen of the operation unit and by the second character encoding scheme, the document name , in which the recognized character string is included, set by the document name setting means; and wherein, in a case that the first character encoding scheme is not compatible with the second character encoding scheme, the character string recognized from the input document data is not used (S711) in the document name of the input document data by the document name setting means. <EOS>