Display method, device, electronic device and storage medium for rare Chinese characters
By performing code conversion processing on the Chinese character encoding sequences of rare Chinese characters, mapping them to the reserved areas of EBCDIC coding, and constructing a code conversion relationship, the problem of the IBM system being unable to support rare Chinese characters was solved, and effective encoding and display of rare Chinese characters was achieved.
Patent Information
- Application Number
- CN202110677209.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-18
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-06-18
AI Technical Summary
The existing EBCDIC encoding under the IBM host system cannot effectively support the rare Chinese characters among the approximately 80,000 international standard Chinese characters, resulting in the inability to encode rare Chinese characters on the IBM host system.
By obtaining the Chinese character encoding sequence of rare Chinese characters, performing encoding conversion processing, mapping it to the reserved area of EBCDIC encoding, constructing the encoding conversion relationship of the rare Chinese character set, and using the hash algorithm to generate a unique EBCDIC encoding sequence, including identification bytes and convert bytes to achieve EBCDIC encoding representation of rare Chinese characters.
It achieves effective encoding processing of rare Chinese characters in the IBM system, solves the problem that the IBM system cannot support rare Chinese characters, and ensures the unique encoding and correct display of rare Chinese characters in the IBM host system.
Smart Images

Figure CN113296614B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for encoding rare Chinese characters. Background Art
[0002] At present, computers under the banking platform usually use IBM mainframe systems, and the ZOS system under the mainframe generally only supports EBCDIC encoding.
[0003] The existing EBCDIC encoding supports single-byte character sets and double-byte character sets, which can only support about 30,000 Chinese characters. The international standard Chinese characters include about 80,000, many of which are rare Chinese characters used in names of people or places.
[0004] However, the code positions of EBCDIC encoding have been allocated to commonly used Chinese characters or English characters, and there is no spare code position space of single-byte character set or double-byte character set to allocate to these uncommon Chinese characters. Therefore, how to encode these uncommon Chinese characters on the existing IBM mainframe system becomes a problem to be solved urgently. Summary of the invention
[0005] The embodiments of the present application provide a method, device, electronic device and storage medium for encoding rare Chinese characters, so as to provide a solution for EBCDIC encoding processing of rare Chinese characters.
[0006] On the one hand, the present application provides a method for encoding rare Chinese characters, comprising:
[0007] The encoding method of rare Chinese characters is characterized by comprising:
[0008] Obtaining the Chinese character encoding sequence of each rare Chinese character in the rare Chinese character set;
[0009] Performing code conversion processing on each Chinese character code sequence to map each Chinese character code sequence to a reserved area of EBCDIC code to obtain an EBCDIC code sequence of each uncommon Chinese character;
[0010] According to the Chinese character encoding sequence of each rare Chinese character and the corresponding EBCDIC encoding sequence, a code conversion relationship of the rare Chinese character set is constructed.
[0011] In an optional embodiment, Chinese character encoding sequences of different rare Chinese characters are mapped to different encoding values in a reserved area of EBCDIC encoding.
[0012] In an optional embodiment, the EBCDIC encoding sequence includes an identification byte and a conversion byte;
[0013] The identification byte is used to indicate that the EBCDIC encoding sequence is an EBCDIC encoding sequence of rare Chinese characters; and the conversion byte is used to distinguish different EBCDIC encoding sequences of rare Chinese characters.
[0014] In an optional embodiment, the conversion byte is obtained by performing a code conversion process based on a hash algorithm on the Chinese character code sequence.
[0015] In an optional embodiment, the identification byte is located at the head byte of the EBCDIC encoding sequence.
[0016] In an optional embodiment, the encoding value of the identification byte is FE.
[0017] In an optional embodiment, the encoding value of the conversion byte ranges from C04141 to ECFEBF.
[0018] In an optional embodiment, the encoding method further includes:
[0019] Reading the encoding conversion relationship of the rare Chinese character set;
[0020] According to the Chinese character code of the uncommon Chinese character to be recognized, an EBCDIC code sequence corresponding to the uncommon Chinese character to be recognized is determined.
[0021] In a second aspect, the present application provides a coding device for rare Chinese characters, comprising:
[0022] An acquisition module, used for acquiring the Chinese character encoding sequence of each rare Chinese character in the rare Chinese character set;
[0023] A conversion processing module, used for performing code conversion processing on each Chinese character code sequence to map the Chinese character code sequence to a reserved area of EBCDIC code to obtain an EBCDIC code sequence of each uncommon Chinese character;
[0024] The construction module is used to construct the encoding conversion relationship of the rare Chinese character set according to the Chinese character encoding sequence of each rare Chinese character and the corresponding EBCDIC encoding sequence.
[0025] In a third aspect, the present application provides an electronic device, comprising: at least one processor and a memory;
[0026] The memory stores computer-executable instructions;
[0027] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the encoding method for rare Chinese characters as described in the first aspect.
[0028] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the encoding method of rare Chinese characters as in the first aspect is implemented.
[0029] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the encoding method of rare Chinese characters in the first aspect.
[0030] The embodiments of the present application provide a method, device, electronic device and storage medium for encoding rare Chinese characters, including obtaining a Chinese character encoding sequence of each rare Chinese character in a rare Chinese character set; performing encoding conversion processing on each Chinese character encoding sequence to map the Chinese character encoding sequence to a reserved area of EBCDIC encoding to obtain an EBCDIC encoding sequence of each rare Chinese character; constructing an encoding conversion relationship of the rare Chinese character set according to the Chinese character encoding sequence of each rare Chinese character and the corresponding EBCDIC encoding sequence, thereby realizing the encoding representation of rare Chinese characters based on the EBCDIC encoding format, and solving the problem that rare Chinese characters cannot be supported in the existing IBM system. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0032] Figure 1 A schematic diagram of a network architecture on which this application is based;
[0033] Figure 2 It is a flow chart of a method for encoding rare Chinese characters provided by the present application;
[0034] Figure 3 A schematic diagram of the structure of a coding device for rare Chinese characters provided in this application;
[0035] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0036] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0037] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of systems and methods consistent with some aspects of the present application as detailed in the appended claims.
[0038] In order to clearly explain the verification scheme provided by this application, the terms involved will first be explained:
[0039] Encoding: A set of encoding methods that can be used to store and represent characters in a computer is assigned to each character, also known as a character encoding table.
[0040] EBCDIC: The full name is Extended Binary Coded Decimal Interchange Code, which is a character encoding table under the IBM mainframe system.
[0041] GB18030: It is the national standard for Chinese character encoding of electronic products launched by the Ministry of Industry and Information Technology.
[0042] The existing EBCDIC encoding supports single-byte character sets (ie, SBCS) and double-byte character sets (ie, DBCS), which can only support 32,443 characters (including 27,533 Chinese characters).
[0043] With the annual expansion of characters in the GB18030 National Chinese Character Coding Standard (GB18030) and characters used in the population information of the Ministry of Public Security, 42,711 new rare Chinese characters were added to GB18030-2005. These added rare Chinese characters lack their corresponding EBCDIC encoding formats on the existing IBM mainframe system. This also means that when information related to rare Chinese characters appears, the IBM mainframe system and the corresponding database cannot effectively store these rare Chinese characters, which seriously affects their use.
[0044] Generally speaking, the code points of EBCDIC encoding have been allocated to commonly used Chinese characters or English characters, and there is no spare code point space of single-byte character set or double-byte character set to allocate to these uncommon Chinese characters. Therefore, how to encode these uncommon Chinese characters on the existing IBM mainframe system has become a problem to be solved urgently.
[0045] In view of the above problems, the inventors have discovered that the EBCDIC code also includes a reserved area that can be used for custom encoding, and the reserved area can be used to perform EBCDIC encoding for rare Chinese characters, that is, by performing code conversion processing on each Chinese character code sequence to map the Chinese character code sequence to the reserved area of the EBCDIC code, the EBCDIC code sequence of each rare Chinese character is obtained; according to the Chinese character code sequence of each rare Chinese character and the corresponding EBCDIC code sequence, the code conversion relationship of the rare Chinese character set is constructed, thereby realizing the code representation of rare Chinese characters based on the EBCDIC code format, and solving the problem that rare Chinese characters cannot be supported in the existing IBM system.
[0046] The method provided in this application will be described below in combination with different implementation modes.
[0047] refer to Figure 1 , Figure 1 A schematic diagram of a network architecture based on this application, Figure 2 The network architecture shown may specifically include a server 1 and a terminal device 2 .
[0048] Among them, server 1 specifically refers to a coding server used to encode various Chinese characters, letters, and numbers. It can be specifically set up in a server cluster in the cloud. It can carry the encoding device for rare Chinese characters provided in this application, so as to perform encoding processing on rare Chinese characters based on the encoding method for rare Chinese characters provided in this application.
[0049] The terminal device 2 refers to a hardware device based on an IBM mainframe system, which can use the rare Chinese characters encoded by the aforementioned server 1 to express and display information.
[0050] Among them, when the encoding device of rare Chinese characters in server 1 completes the encoding of rare Chinese characters, the encoding conversion relationship of the rare Chinese character set will be obtained, and the encoding conversion relationship of the rare Chinese character set will be sent to terminal device 2 through the network for storage by terminal device 2.
[0051] After the terminal device 2 loads the encoding conversion relationship of the rare Chinese character set, the rare Chinese characters that need to be expressed and displayed can be displayed based on the EBCDIC encoding based on the encoding conversion relationship of the rare Chinese character set.
[0052] Embodiment 1
[0053] Figure 2 This is a flow chart of a method for encoding rare Chinese characters provided by the present application. Figure 2 As shown, the method includes:
[0054] Step 101: Obtain the Chinese character encoding sequence of each rare Chinese character in the rare Chinese character set.
[0055] Step 102: Perform code conversion processing on each Chinese character code sequence to map the Chinese character code sequence to a reserved area of EBCDIC code to obtain an EBCDIC code sequence of each uncommon Chinese character.
[0056] Step 103: construct a code conversion relationship of the rare Chinese character set according to the Chinese character code sequence of each rare Chinese character and the corresponding EBCDIC code sequence.
[0057] It should be noted that the encoding method of rare Chinese characters provided in this application can be specifically applied to an encoding device for rare Chinese characters, and the encoding device can be installed or integrated in a computer system such as a computer system. Figure 1 In server 1 in the network architecture shown.
[0058] Specifically, in order to realize the encoding process of rare Chinese characters, the encoding device first needs to obtain the rare Chinese character set to be encoded. Among them, the rare Chinese character set includes each rare Chinese character to be encoded and the corresponding Chinese character encoding sequence. Generally, the Chinese character encoding sequence of rare Chinese characters refers to the encoding sequence of rare Chinese characters in the GB18030 standard format. The encoding device can download the Chinese character encoding sequence of rare Chinese characters through the network.
[0059] Then, the encoding device will perform code conversion processing on each rare Chinese character in the rare Chinese character set to convert each rare Chinese character from its Chinese character code sequence in the GB18030 standard format to an EBCDIC code sequence in the EBCDIC standard format.
[0060] For EBCDIC code, it can generally support encoding conversion of single-byte character set or double-byte character set, that is, using a single-byte encoding sequence to represent characters in a single-byte character set, or using a double-byte encoding sequence to represent characters in a double-byte character set. Therefore, on the basis of the above, EBCDIC code can only support the representation of 32,443 characters (including 27,533 Chinese characters), and these characters have been occupied by the characters in the single-byte character set and the characters in the double-byte character set, and there is no extra encoding space allocated to the rare Chinese characters targeted by this application.
[0061] Based on this, the reserved area of EBCDIC coding is used in this application to convert and support the coding of uncommon Chinese characters. Specifically, the reserved area of EBCDIC coding refers to the coding area reserved for users to customize under the EBCDIC coding standard. This application uses the reserved area of EBCDIC coding as the mapping area of EBCDIC coding of uncommon Chinese characters to achieve the function of allocating unique EBCDIC coding sequences for uncommon Chinese characters.
[0062] That is to say, the encoding device performs encoding conversion processing on each Chinese character encoding sequence to map the Chinese character encoding sequence to the reserved area of EBCDIC encoding to obtain the EBCDIC encoding sequence of each rare Chinese character.
[0063] After completing the code conversion of each rare Chinese character in the rare Chinese character set, the code conversion relationship of the rare Chinese character set will be obtained based on the EBCDIC code sequence generated for each rare Chinese character. The code conversion relationship of the rare Chinese character set is used to represent the mapping relationship between the Chinese character code sequence of each rare Chinese character in the rare Chinese character set and its corresponding EBCDIC code sequence.
[0064] The encoding conversion relationship of the rare Chinese character set can be directly loaded and used by the terminal device. For example, when the terminal device under the IBM mainframe system obtains a Chinese character encoding sequence including rare Chinese characters from the network, the terminal device can use the loaded encoding conversion relationship of the rare Chinese character set to search for the EBCDIC encoding sequence corresponding to the Chinese character encoding sequence of the rare Chinese character in the encoding conversion relationship for subsequent display or other processing. That is, read the encoding conversion relationship of the rare Chinese character set; determine the EBCDIC encoding sequence corresponding to the rare Chinese character to be identified according to the Chinese character encoding of the rare Chinese character to be identified.
[0065] In other implementations, when the terminal device under the IBM mainframe system needs to display an uncommon Chinese character, the EBCDIC encoding sequence of the uncommon Chinese character can be directly found according to the encoding conversion relationship of the uncommon Chinese character set, and the EBCDIC encoding sequence is displayed as a display character. It should be noted that, since the terminal device under the IBM mainframe system cannot support the display of uncommon Chinese characters, the characters displayed in actual display are not the uncommon Chinese characters themselves, but the EBCDIC encoding sequence corresponding to the uncommon Chinese characters.
[0066] Of course, in another embodiment, when the terminal device under the IBM mainframe system also includes the EBCDIC code of the single-byte character set and the EBCDIC code of the double-byte character set in the prior art; therefore, when the terminal device obtains the EBCDIC code sequence to be displayed, the display content corresponding to the EBCDIC code sequence to be displayed can be determined based on the code conversion relationship between the EBCDIC code of the single-byte character set, the EBCDIC code of the double-byte character set, and the rare Chinese character set, such as the characters to be displayed or the EBCDIC code sequence itself. In this way, the EBCDIC code sequence to be displayed can be correctly displayed instead of being misdisplayed or misread.
[0067] On the basis of the above implementation, in order to make the EBCDIC coding sequence of each rare Chinese character unique, in this implementation, the encoding device needs to map the Chinese character coding sequences of different rare Chinese characters to different coding values in the reserved area of EBCDIC coding when performing coding conversion processing on each Chinese character coding sequence.
[0068] On the basis of the above implementation, the present application also provides a specific structure of the coding sequence of rare Chinese characters. The EBCDIC coding sequence includes an identification byte and a conversion byte; wherein the identification byte is used to indicate that the EBCDIC coding sequence is an EBCDIC coding sequence of rare Chinese characters; and the conversion byte is used to distinguish different EBCDIC coding sequences of rare Chinese characters.
[0069] In the EBCDIC encoding sequence of each rare Chinese character provided in this embodiment, a 4-byte encoding value is included.
[0070] The first byte of the 4 bytes can be used as the aforementioned identification byte, and in one optional implementation, the encoding value of the identification byte is FE. That is, when the terminal device receives any EBCDIC encoding sequence and finds that the encoding value of the first byte of the sequence is FE, the EBCDIC encoding sequence will be used to represent rare Chinese characters, and at this time, the terminal device can directly display the EBCDIC encoding sequence.
[0071] The last three bytes of the four bytes can be used as the aforementioned conversion bytes. In one optional implementation, the encoding value of the conversion byte ranges from C04141 to ECFEBF. In other words, for the second byte of the four bytes, the encoding value ranges from C0 to EC; for the third byte of the four bytes, the encoding value ranges from 41 to FE; for the third byte of the four bytes, the encoding value ranges from 41 to BF.
[0072] In order to ensure that each uncommon Chinese character has a unique EBCDIC encoding sequence, the conversion byte of each uncommon Chinese character needs to be unique. Based on this, in this embodiment, the conversion byte is obtained by performing a code conversion process based on a hash algorithm on the Chinese character encoding sequence.
[0073] Specifically, for a certain rare Chinese character, its EBCDIC encoding sequence is represented by FExxyyzz, wherein FE is an identification byte and xxyyzz are conversion bytes.
[0074] To get the encoded value of the converted byte, the following operations are performed:
[0075] xx=x'C0'+HEX((x'XXXXXX'+x'1') / x'8CC5');
[0076] yy=x'41'+HEX(((x'XXXXXX'+x'1')%x'8CC5') / x'BE');
[0077] zz=x'41'+HEX(((x'XXXXXX'+x'1')%x'8CC5')%x'BE');
[0078] Among them, HEX is used to represent the algorithm function of the hash algorithm, XXXXXX' is used to represent the Chinese code sequence; C0', 8CC5', 41', and BE' are the code values respectively.
[0079] The encoding value of the rare Chinese character on each conversion byte can be obtained in the above manner, and the encoding value of the conversion byte and the encoding value of the identification byte will constitute an EBCDIC encoding sequence.
[0080] The embodiment of the present application provides a method for encoding rare Chinese characters, including obtaining a Chinese character encoding sequence of each rare Chinese character in a rare Chinese character set; performing encoding conversion processing on each Chinese character encoding sequence to map the Chinese character encoding sequence to a reserved area of EBCDIC encoding to obtain an EBCDIC encoding sequence of each rare Chinese character; constructing an encoding conversion relationship of the rare Chinese character set according to the Chinese character encoding sequence of each rare Chinese character and the corresponding EBCDIC encoding sequence, thereby realizing the encoding representation of rare Chinese characters based on the EBCDIC encoding format, and solving the problem that the existing IBM system cannot support rare Chinese characters.
[0081] Embodiment 2
[0082] Based on the first embodiment, the second embodiment provides a coding device for rare Chinese characters. Figure 3 A schematic diagram of the structure of a coding device for rare Chinese characters provided in this application is shown in FIG. Figure 3 As shown, the encoding device comprises:
[0083] An acquisition module 301 is used to acquire a Chinese character encoding sequence of each rare Chinese character in the rare Chinese character set;
[0084] The conversion processing module 302 is used to perform code conversion processing on each Chinese character code sequence to map the Chinese character code sequence to the reserved area of EBCDIC code to obtain the EBCDIC code sequence of each rare Chinese character;
[0085] The construction module 303 is used to construct the encoding conversion relationship of the rare Chinese character set according to the Chinese character encoding sequence of each rare Chinese character and the corresponding EBCDIC encoding sequence.
[0086] In an optional embodiment, Chinese character encoding sequences of different rare Chinese characters are mapped to different encoding values in a reserved area of EBCDIC encoding.
[0087] In an optional embodiment, the EBCDIC encoding sequence includes an identification byte and a conversion byte;
[0088] The identification byte is used to indicate that the EBCDIC encoding sequence is an EBCDIC encoding sequence of rare Chinese characters; and the conversion byte is used to distinguish different EBCDIC encoding sequences of rare Chinese characters.
[0089] In an optional embodiment, the conversion byte is obtained by performing a code conversion process based on a hash algorithm on the Chinese character code sequence.
[0090] In an optional embodiment, the identification byte is located at the head byte of the EBCDIC encoding sequence.
[0091] In an optional embodiment, the encoding value of the identification byte is FE.
[0092] In an optional embodiment, the encoding value of the conversion byte ranges from C04141 to ECFEBF.
[0093] In an optional embodiment, the encoding device further includes: an identification module;
[0094] The recognition module is used to read the encoding conversion relationship of the rare Chinese character set; and determine the EBCDIC encoding sequence corresponding to the rare Chinese character to be recognized according to the Chinese character encoding of the rare Chinese character to be recognized.
[0095] The embodiment of the present application provides an encoding device for rare Chinese characters, including obtaining a Chinese character encoding sequence of each rare Chinese character in a rare Chinese character set; performing encoding conversion processing on each Chinese character encoding sequence to map the Chinese character encoding sequence to a reserved area of EBCDIC encoding to obtain an EBCDIC encoding sequence of each rare Chinese character; constructing an encoding conversion relationship of the rare Chinese character set according to the Chinese character encoding sequence of each rare Chinese character and the corresponding EBCDIC encoding sequence, thereby realizing the encoding representation of rare Chinese characters based on the EBCDIC encoding format, and solving the problem that rare Chinese characters cannot be supported in the existing IBM system.
[0096] Embodiment 3
[0097] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 4 As shown, an embodiment of the present application further provides an electronic device 1400, including: a memory 1401, a processor 1402 and a computer program.
[0098] The computer program is stored in the memory 1401 and is configured to be executed by the processor 1402 to implement the encoding method of rare Chinese characters provided in any embodiment of the present application. The relevant description can be understood by referring to the relevant descriptions and effects corresponding to the steps in the accompanying drawings, and no further details are given here.
[0099] In this embodiment, the memory 1401 and the processor 1402 are connected via a bus.
[0100] Embodiment 4
[0101] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor to implement the encoding method of rare Chinese characters provided in any embodiment of the present application.
[0102] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or modules, which can be electrical, mechanical or other forms.
[0103] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0104] In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0105] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable question-answering system, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0106] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, system, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0107] In addition, the present application provides a computer program product, including a computer program, which implements the above-mentioned encoding method for rare Chinese characters when executed by a processor.
[0108] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.
[0109] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A method for displaying rare Chinese characters. It is characterized in that include: The server downloads the Chinese character encoding sequence of each uncommon Chinese character in the uncommon Chinese character set through the network; wherein the Chinese character encoding sequence is the encoding sequence of each uncommon Chinese character in the GB18030 standard format; The server performs code conversion processing on each Chinese character code sequence to map the each Chinese character code sequence to a reserved area of EBCDIC code to obtain an EBCDIC code sequence of each uncommon Chinese character; wherein the Chinese character code sequences of different uncommon Chinese characters are mapped to different code values of the reserved area of EBCDIC code; wherein the EBCDIC code sequence includes an identification byte and a conversion byte; the conversion byte is obtained by performing code conversion processing based on a hash algorithm on the Chinese character code sequence; the identification byte is used to indicate that the EBCDIC code sequence is an EBCDIC code sequence of an uncommon Chinese character; the conversion byte is used to distinguish different EBCDIC code sequences of uncommon Chinese characters; The server constructs a code conversion relationship of the rare Chinese character set according to the Chinese character code sequence of each rare Chinese character and the corresponding EBCDIC code sequence; The terminal device receives an instruction to display rare Chinese characters to be recognized; The terminal device reads the encoding conversion relationship of the rare Chinese character set; The terminal device determines the EBCDIC encoding sequence corresponding to the uncommon Chinese character to be identified according to the Chinese character encoding of the uncommon Chinese character to be identified and the encoding conversion relationship of the uncommon Chinese character set; The terminal device displays the EBCDIC code sequence.
2. The display method according to claim 1, It is characterized in that The identification byte is located at the head byte of the EBCDIC encoding sequence.
3. The display method according to claim 2, It is characterized in that The encoding value of the identification byte is FE.
4. The display method according to claim 1, It is characterized in that The encoding value of the conversion byte ranges from C04141 to ECFEBF.
5. A method for displaying rare Chinese characters. It is characterized in that include: The terminal device receives an instruction to display rare Chinese characters to be recognized; wherein the Chinese character encoding sequence is the encoding sequence of each rare Chinese character in the GB18030 standard format; The terminal device reads the code conversion relationship of the rare Chinese character set; the code conversion relationship of the rare Chinese character set is obtained by mapping the Chinese character code sequence of each rare Chinese character in the rare Chinese character set to the reserved area of EBCDIC code, and obtaining the EBCDIC code sequence of each rare Chinese character, and then constructing it according to the Chinese character code sequence of each rare Chinese character and the corresponding EBCDIC code sequence; wherein the Chinese character code sequences of different rare Chinese characters are mapped to different code values of the reserved area of EBCDIC code; wherein the EBCDIC code sequence includes an identification byte and a conversion byte, the identification byte is used to indicate that the EBCDIC code sequence is the EBCDIC code sequence of the rare Chinese character; the conversion byte is used to distinguish the EBCDIC code sequences of different rare Chinese characters; the conversion byte is obtained by performing code conversion processing based on the hash algorithm on the Chinese character code sequence; the terminal device determines the EBCDIC code sequence corresponding to the rare Chinese character to be identified according to the Chinese character code of the rare Chinese character to be identified and the code conversion relationship of the rare Chinese character set; The terminal device displays the EBCDIC code sequence.
6. A display device for rare Chinese characters, It is characterized in that include: An acquisition module is used to download the Chinese character encoding sequence of each uncommon Chinese character in the uncommon Chinese character set through the network; wherein the Chinese character encoding sequence is the encoding sequence of each uncommon Chinese character in the GB18030 standard format; A conversion processing module, used for performing code conversion processing on each Chinese character code sequence, so as to map the Chinese character code sequence to a reserved area of EBCDIC code, and obtain an EBCDIC code sequence of each uncommon Chinese character; wherein the Chinese character code sequences of different uncommon Chinese characters are mapped to different code values of the reserved area of EBCDIC code; wherein the EBCDIC code sequence includes an identification byte and a conversion byte; the conversion byte is obtained by performing code conversion processing based on a hash algorithm on the Chinese character code sequence; the identification byte is used to indicate that the EBCDIC code sequence is an EBCDIC code sequence of an uncommon Chinese character; the conversion byte is used to distinguish different EBCDIC code sequences of uncommon Chinese characters; A construction module, used for constructing a code conversion relationship of the rare Chinese character set according to the Chinese character code sequence of each rare Chinese character and the corresponding EBCDIC code sequence; A receiving module, used for receiving an instruction to display rare Chinese characters to be recognized; A recognition module, used for reading the encoding conversion relationship of the rare Chinese character set; determining the EBCDIC encoding sequence corresponding to the rare Chinese character to be recognized according to the Chinese character encoding of the rare Chinese character to be recognized and the encoding conversion relationship of the rare Chinese character set; The display module is used for displaying the EBCDIC encoding sequence on a terminal device.
7. A display device for rare Chinese characters, It is characterized in that include: A receiving module, used for receiving an instruction to display rare Chinese characters to be recognized; wherein the Chinese character encoding sequence is the encoding sequence of each rare Chinese character in the GB18030 standard format; A recognition module, used for reading the code conversion relationship of the rare Chinese character set, and determining the EBCDIC code sequence corresponding to the rare Chinese character to be recognized according to the Chinese character code of the rare Chinese character to be recognized and the code conversion relationship of the rare Chinese character set; the code conversion relationship of the rare Chinese character set is obtained by mapping the Chinese character code sequence of each rare Chinese character in the rare Chinese character set to the reserved area of the EBCDIC code, and obtaining the EBCDIC code sequence of each rare Chinese character, and then constructing it according to the Chinese character code sequence of each rare Chinese character and the corresponding EBCDIC code sequence; wherein the Chinese character code sequences of different rare Chinese characters are mapped to different code values of the reserved area of the EBCDIC code; wherein the EBCDIC code sequence includes an identification byte and a conversion byte, wherein the identification byte is used to indicate that the EBCDIC code sequence is the EBCDIC code sequence of the rare Chinese character; the conversion byte is used to distinguish the EBCDIC code sequences of different rare Chinese characters; the conversion byte is obtained by performing code conversion processing based on a hash algorithm on the Chinese character code sequence; The display module is used to display the EBCDIC encoding sequence.
8. An electronic device, It is characterized in that include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the display method according to any one of claims 1 to 5.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the display method according to any one of claims 1 to 5 is implemented.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the display method according to any one of claims 1 to 5 is implemented.
