The present disclosure relates to an image processing apparatus, a method for controlling an image processing apparatus, and a storage medium capable of setting a character code of a character contained in an electronic mail.
An image processing apparatus (especially, a multifunction peripheral (MFP)) transmits a subject and a message body as an electronic mail. A character written in the subject/message body is formed by a character code. Since the image processing apparatus is used in various countries, various kinds of character codes are also used for the character written in the subject/message body of the electronic mail.
Japanese Patent Application Laid-Open No. 2007-116323 discusses that, when transmitting an electronic mail, an image processing apparatus detects a destination from an area name of a transmission destination, and detects a possibility that an apparatus on a reception side does not support a character string represented by a non-American Standard Code for information Interchange (ASCII) code. Then, if there is a character string that does not correspond to the non-ASCII code, the image processing apparatus deletes the non-ASCII code because a garbled character is generated when the character code is converted.
The image processing apparatus can receive an input of the subject/message body of the electronic mail from an external information processing apparatus (for example, a personal computer (PC)). If the subject and the message body of the electronic mail are input from an external information processing terminal, the input character is represented by a character code set in the external information processing terminal. For example, if the character is input to the electronic mail on the image processing apparatus via a web browser with use of a PC on which French is set as a character setting, the character input to the image processing apparatus is not represented by a character code for Japanese but is represented by a character code for French.
In such a configuration, the image processing apparatus may be unable to correctly convert the character code for some character if the image processing apparatus converts the character code of the character whose input is received from the external information processing apparatus into a character code preset in the apparatus. Then, when an electronic mail containing such a character is transmitted, the garbled character such as a blank may be generated on the transmission destination.
According to an aspect of the present disclosure, an image processing apparatus includes a transmission unit configured to transmit an electronic mail containing a character input from an external information processing apparatus via a web browser. The image processing apparatus includes a reception unit configured to receive a character code, and a conversion unit configured to convert a character code of the character contained in the electronic mail. The conversion unit converts the character code of the character input from the external information processing apparatus into the character code received by the reception unit. The transmission unit transmits the electronic mail containing the character represented by the character code converted by the conversion unit.
Further features of the present disclosure will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
An exemplary embodiment of the present disclosure and an exemplary modification thereof will be described in detail with reference to the accompanying drawings. The exemplary embodiment that will be described below does not limit the present disclosure, and, further, not all of combinations of features that will be described in the exemplary embodiment and the exemplary modification are necessarily essential to all embodiments of the present disclosure.
An image processing apparatus according to the present exemplary embodiment allows a user to select a character code used after character code conversion processing. A central processing unit (CPU) of the image processing apparatus converts a character code of a character input by a web browser of an external information processing apparatus in such a manner that it is replaced with the character code selected by the user. Then, the image processing apparatus transmits an electronic mail containing the character represented by the converted character code.
In
Further, the MFP 101 and the FAX 106 are communicably connected to each other via a public telephone network 105.
The MFP 101 transmits an electronic mail containing scanned image data to the MFP 102 or the PC 104 via the mail server 103.
The mail server 103 stores the electronic mail received from the MFP 101 in a mail box prepared in a storage (not illustrated) as an electronic mail to be received by the MFP 102 or the PC 104.
The MFP 102 receives the electronic mail transmitted by the MFP 101 from the mail box in the mail server 103 with use of a set account for receiving the electronic mail.
The PC 104 receives the electronic mail transmitted by the MFP 101 from the mail box in the mail server 103 with use of a set account for receiving the electronic mail. Further, the PC 104 can operate the MFP 101 remotely with use of a web browser.
The FAX 106 receives a facsimile transmitted with use of a FAX number as which the FAX 106 is set, from the MFP 101.
In
The ROM 112 stores a control program executable by the CPU 111 therein. Further, the ROM 112 also stores a boot program, font data, and the like therein. A random access memory (RAM) 113 is a main storage memory of the CPU 111, and is used as a work area, i.e., a temporary storage area for developing various kinds of control programs stored in the ROM 112 and the storage 114. The storage 114 stores image data, print data, various kinds of programs, and various kinds of setting information therein. In the present exemplary embodiment, the storage 114 is assumed to be embodied by a flash memory, but an auxiliary storage device such as a solid state drive (SSD), a hard disk drive (HDD), and an embedded Multi Media Card (eMMC) can be used as the storage 114.
The MFP 101 according to the present exemplary embodiment is assumed to be configured in such a manner that one CPU 111 performs each processing procedure illustrated in a flowchart that will be described below with use of one memory (the RAM 113), but is not limited to this configuration. For example, the MFP 101 can also be configured to cause a plurality of CPUs, RAMs, ROMs, and storages to cooperate with one another to perform each processing procedure illustrated in the flowchart that will be described below. Further, a part of the processing can be performed with use of a hardware circuit such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
An operation unit interface (I/F) 115 connects an operation unit 116 and the control unit 110 to each other. The operation unit 116, for example, displays information to a user and detects an input from the user. The CPU 111 is notified of the detected input from the user via the operation unit I/F 115. Then, the CPU 111 performs control based on the input that the CPU 111 is notified of.
A reading unit I/F 117 connects a reading unit 118 and the control unit 110 to each other. The reading unit 118 reads an image on an original document and converts this image into image data such as binary data.
The CPU 111 performs control of transmitting the image data generated by the reading unit 118 to an external apparatus via a communication unit I/F 123. Alternatively, the CPU 111 may perform control of inputting the image data to a printing unit 120 via the reading unit I/F 117 and a printing unit I/F 119 and causing the printing unit 120 to print an image on a recording sheet based on the input image data. Further, the CPU 111 may perform control of causing the image data generated by the reading unit 118 to be stored into the storage 114 via the reading unit I/F 117.
The printing unit I/F 119 connects the printing unit 120 and the control unit 110 to each other. The CPU 111 performs control of inputting image data of a print target to the printing unit 120 via the printing unit I/F 119. The printing unit 120 prints an image on a recording sheet fed from a sheet feeding cassette.
The communication unit I/F 123 connects the control unit 110 and the network 100 to each other. The CPU 111 may perform, via the communication unit I& 123, control of causing image data and various kinds of information inside the MFP 101 to be transmitted to an external apparatus and of causing print data to be received from the external apparatus on the network 100.
Examples of a method for the transmission/reception via the network 100 include transmission/reception using the above-described electronic mail, and a method that transmits a file with use of another protocol (for example, File Transfer Protocol (FTP), Server Message Block (SMB), or Web Distributed Authoring and Versioning (WebDAV)). Further, the examples of the method for the transmission/reception via the network 100 also include a method in which the MFP 101 is equipped with a web server function and causes a received job history or various kinds of setting data to be displayed on the PC 104 in response to access from the PC 104 in compliance with the Hypertext Transfer Protocol (HTTP) protocol. However, the present exemplary embodiment is not limited to these methods.
The CPU 111 can connect the MFP 101 to the public telephone network 105 by controlling a FAX communication unit 122 by a FAX unit I/F 121. The FAX unit I/F 121 is an I/F for controlling the FAX communication unit 122. The CPU 111, for example, connects the MFP 101 to the public telephone network 105 and controls a facsimile communication protocol by controlling a modem for the facsimile communication or a network control unit (NCU) via the FAX unit I/F 121.
The operation screen illustrated in
A status confirmation screen 305 is a key for displaying a screen on which the user confirms a state of the MFP 101 (a status confirmation screen). The status confirmation screen allows a transmission history to be displayed.
A fax 302 is a key for displaying a facsimile transmission setting screen (not illustrated) of the MFP 101. The MFP 101 sets a destination from a telephone number, an address book, or the like from the facsimile transmission screen, and transmits the image data read by the reading unit 118 by fax (faxes the image data) to an apparatus at the other end.
A scan 303 is a key for displaying a scan selection screen (not illustrated) from the MFP 101. The scan selection screen displays selections of a transmission method, such as electronic mail transmission (an E-mail), file transmission by SMB or FTP, and Internet fax (I-fax) transmission. Touching the displayed selection display screen by the user causes each transmission setting screen to be displayed.
An address book 304 is a key for displaying an address book screen of the MFP 101.
The LED 310 and the LED 311 are provided to notify the user of the state of the MFP 101. The LED 310 lights up while the electronic mail or the print job is being received or executed, and the LED 311 lights up when some error has occurred in the MFP 101,
A STOP 306 is a key for canceling various kinds of operations. In the present exemplary embodiment, the STOP 306 is a resident key constantly displayed on the operation unit 116,
A HOME 307 is a key for displaying the HOME screen 308. In the present exemplary embodiment, the HOME 307 is a resident key constantly displayed on the operation unit 116.
A menu 312 is a key for displaying a screen for configuring an environmental setting such as an employed language and a setting of each of the functions.
A character code setting screen 400 illustrated in
Further, in a case where the character code selection function is set to ON, a character code key 403 becomes selectable by the user. If the user selects the character code key 403, the MFP 101 transitions to a character code selection screen 405 illustrated in
On the character code selection screen 405 illustrated in
UTF-8 is a character code acquired by serializing UTF-32. Therefore, in
After the logical conversion ends, the CPU 111 converts the character code from UTF-32 into CP 1252 with use of the character conversion table illustrated in
A plurality of character conversion tables in which a predetermined character code before the conversion and a predetermined character code after the conversion correspond to each other, among a plurality of character codes supported by the image processing apparatus, is stored in the storage 114 in advance. Further, when the character code is set in
A subject/message body screen 500 is one example of a screen to which the MFP 101 transitions by being prompted by a touch on the menu 312 illustrated in
In
Accordingly, if the character code of the character whose input is received from the external information processing apparatus is converted into a character code preset in the MFP 101, the character code conversion processing may be unable to be correctly performed.
In step S601, the CPU 111 sets parameters such as a transmission destination, a subject/message body, a format of an attached image, and a size of a read image. After step S601 ends, the processing proceeds to step S602.
In step S602, the reading unit 118 generates image data to be attached to the electronic mail by reading an original document (image generation processing). After step S602 ends, the processing proceeds to step S603.
in step S603, the CPU 111 determines whether the function of selecting the character code for use in the character code conversion processing is set to ON on the character code setting screen 400 illustrated in
In step S604, the CPU 111 converts the character code of the character written in the subject/message body into the character code set in
In step S605, the CPU 111 performs existing character code conversion processing on the character code of the character written in the subject/message body. Now, the existing character code conversion processing will be described. For example, the CPU 111 recognizes the character code of the character written in the subject/message body. Then, the CPU 111 performs the character code conversion processing to convert the character code from the character code of the character written in the subject/message body (the recognized character code) into the character code preset in the apparatus with use of a character code table based on the character code preset in the apparatus. This is the existing character code conversion processing. Being preset in the apparatus refers to being built in the apparatus as a setting in advance and to being unable to be changed. After step S605 ends, the processing proceeds to step S606.
In step S606, the CPU 111 causes the character represented by the converted character code and the image data generated in step S602 to be transmitted as the electronic mail. After step S606 ends, the electronic mail transmission processing according to the present exemplary embodiment ends.
According to such a configuration, the image processing apparatus becomes able to transmit the electronic mail after correctly converting the character code of the character written in the electronic mail when transmitting the electronic mail containing the character whose input is received from the web browser of the external information processing apparatus. Then, the image processing apparatus becomes able to prevent or reduce the generation of the garbled character on the transmission destination.
The image processing apparatus has been described as being configured to cause the user to select the character code for use in the character code conversion processing before touching the transmission key, but can be configured to display the character code selection screen 405 in step S604 and use the character code selected by the user for the character code conversion processing. Further, in the present exemplary embodiment, the character processed by the character code conversion processing is assumed to be the character written in the subject/message body, but can include a header.
The present exemplary modification relates to character code conversion processing in a case where there is an inconvertible character when the character code conversion processing is performed, in terms of which the present exemplary modification is different from the present exemplary embodiment,
In
In step S803, the CPU 111 determines whether there has been a character unable to be converted by the existing character code conversion processing (an inconvertible character) in step S605. In a case where there has been an inconvertible character (YES in step S803), the processing proceeds to step S804. In a case where there has been no inconvertible character (NO in step S803), the processing proceeds to step S606. Now, the inconvertible character refers to, for example, a character represented by a character code unable to be correctly converted due to a lack of the character code corresponding to the character code of the character written in the subject/message body in the character code table like the example illustrated in
In step S804, the CPU 111 displays the character code selection screen 405, and sets the character code for use in the character code conversion processing to the character code selected by the user. After step S804 ends, the processing proceeds to step S805.
In step S805, the CPU 111 performs the character code conversion processing in such a manner that the character is represented by the character code set in step S804. After step S805 ends, the processing proceeds to step S606.
After step S606 ends, the processing regarding the electronic mail transmission processing according to the present exemplary modification ends.
The existing character code conversion processing is performed after step S601 in
Such a configuration also brings about advantageous effects similar to the present exemplary embodiment. Further, according to the present exemplary modification, in a case where the inconvertible character is generated in the character code conversion processing performed first, this character can be converted by the character code conversion processing performed next. Therefore, the image processing apparatus further becomes able to transmit the electronic mail after correctly converting the character code of the character written in the electronic mail.
Embodiment(s) of the present disclosure can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as a ‘non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™) a flash memory device, a memory card, and the like.
While various embodiments of the present disclosure have been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2017-187133, filed Sep. 27, 2017, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2017-187133 | Sep 2017 | JP | national |