A rare character processing method and device, a storage medium and an electronic device

By obtaining the target encoding type of rare characters and updating the characters using a multi-encoding rare character library, the problem of rare characters being unrecognizable in different transaction scenarios is solved. This enables automatic recognition and transcoding of rare characters in transactions such as information authentication and financial account authentication, improving user convenience.

CN116303888BActive Publication Date: 2026-03-27ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-31
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing technologies, the encoding methods for rare characters vary significantly across different transaction scenarios, making it difficult for transaction servers to support all rare character encoding methods. This results in rare characters being unrecognizable in transactions such as information authentication and financial account authentication.

Method used

By obtaining rare characters from the object name, the target rare character encoding type is determined, and the character update process is performed using a multi-encoding rare character library to generate the target object name, thus meeting the rare character compatibility requirements of different transaction scenarios.

Benefits of technology

It enables automatic recognition and transcoding of rare characters in different business scenarios, avoiding situations where rare characters cannot be recognized in daily business, and improving user convenience and compatibility of rare character transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116303888B_ABST
    Figure CN116303888B_ABST
Patent Text Reader

Abstract

The specification discloses a rare character processing method and device, a storage medium and an electronic device, wherein the method comprises: detecting whether an input object name contains a rare character; in the case that the object name contains a rare character, obtaining a target rare coding type for the object name and determining a reference rare coding character of a reference rare coding type corresponding to the object name; performing character updating processing on the reference rare coding character in the object name based on a multi-coding rare character library and the target rare coding type to obtain a target object name.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present specification relates to the technical field of computer technology, and particularly relates to a rare character processing method and device, a storage medium and an electronic device. BACKGROUND

[0002] With the rapid development of communication technology, the information age of business processing is gradually entered, and the corresponding name, place name, address and other information gradually get rid of the paper record and the original storage mode, and the efficiency is greatly improved. Because the Chinese characters have a long history in China, there are still many rare characters, variant characters, local special characters and other special rare characters in use at present. SUMMARY

[0003] The present specification provides a rare character processing method and device, a storage medium and an electronic device, and the technical solution is as follows:

[0004] In a first aspect, the present specification provides a rare character processing method, and the method comprises:

[0005] Obtaining an input object name, detecting whether the object name contains rare characters;

[0006] If the object name contains rare characters, obtaining a target rare character encoding type for the object name, and determining reference rare character encoding characters of at least one reference rare character encoding type corresponding to the object name;

[0007] Based on a multi-encoding rare character library and the target rare character encoding type, performing character updating processing on the reference rare character encoding characters in the object name to obtain a target object name.

[0008] In a second aspect, the present specification provides a rare character processing device, and the device comprises:

[0009] A name detection module is configured to obtain an input object name, and detect whether the object name contains rare characters;

[0010] An encoding processing module is configured to, if the object name contains rare characters, obtain a target rare character encoding type for the object name, and determine reference rare character encoding characters of at least one reference rare character encoding type corresponding to the object name;

[0011] A character updating module is configured to, based on a multi-encoding rare character library and the target rare character encoding type, perform character updating processing on the reference rare character encoding characters in the object name to obtain a target object name.

[0012] In a third aspect, the present specification provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and performing the method steps of one or more embodiments of the present specification.

[0013] In a fourth aspect, the present specification provides an electronic device, which can include a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and performing the method steps of one or more embodiments of the present specification.

[0014] In a fifth aspect, the present specification provides a computer program product, and at least one instruction of the computer program product is loaded by a processor and performs the method steps of one or more embodiments of the present specification.

[0015] The technical solutions provided by some embodiments of the present specification have at least the following beneficial effects:

[0016] In one or more embodiments of the present specification, the electronic device detects whether the input object name contains rare characters, in the case that the object name contains rare characters, acquires a target rare coding type for the object name based on the actual transaction scenario of the user, determines the reference rare coding characters of the reference rare coding type corresponding to the object name, and performs character updating processing on the reference rare coding characters in the object name based on the multi-coding rare word library and the target rare coding type to obtain a target object name. The target object name after character updating can meet the rare word transaction compatibility requirements of the user in daily transactions, and through automatic recognition of rare words and based on the multi-coding rare word library, automatic conversion of the target rare coding type is realized, which can avoid the situation that the user cannot recognize the semantics of rare characters in daily transactions based on the input object name, and facilitates the convenience of users with rare word requirements in daily transaction scenarios. BRIEF DESCRIPTION OF DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present specification or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the present specification, and for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.

[0018] Figure 1 is a scene schematic diagram of a rare word processing system provided by the present specification;

[0019] Figure 2 is a flow schematic diagram of a rare word processing method provided by the present specification;

[0020] Figure 3 is a flow schematic diagram of a character detection process provided by the present specification;

[0021] Figure 4 is a flowchart of a rare code character determination process provided by the present specification;

[0022] Figure 5 is a flowchart of a character update process provided by the present specification;

[0023] Figure 6 is a structural diagram of a rare character processing device provided by the present specification;

[0024] Figure 7 is a structural diagram of an electronic device provided by the present specification;

[0025] Figure 8 is a structural diagram of an operating system and a user space provided by the present specification;

[0026] Figure 9 is Figure 8 an architecture diagram of an Android operating system;

[0027] Figure 10 is Figure 8 an architecture diagram of an IOS operating system. DETAILED DESCRIPTION

[0028] The technical solutions in the present specification will be described clearly and completely in combination with the drawings in the present specification. Obviously, the described embodiments are only some of the embodiments of the present specification, rather than all the embodiments. Based on the embodiments in the present specification, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the protection scope of the present specification.

[0029] In the description of the specification, it is understood that the terms "first", "second", etc. are only for the purpose of description and cannot be understood as indicating or implying relative importance. In the description of the specification, it is pointed out that, unless otherwise explicitly specified and limited, "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or optionally also includes other steps or units inherent to the process, method, product or device. The specific meaning of the above terms in the specification can be understood by the person skilled in the art according to the specific circumstances. In addition, in the description of the specification, "multiple" means two or more, unless otherwise specified. The association relationship of the associated objects is described, which means that there can be three relationships, for example, A and / or B can represent three cases: A exists alone, A and B exist together, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after it.

[0030] In the related art, some special character encoding methods such as full capital pinyin, initial capital pinyin, lowercase pinyin, and pinyin with full-angle brackets are used to encode special characters to meet the needs of users who need special characters. However, in actual application, the special character encoding methods supported by the transaction service end under different transaction scenarios (such as user information authentication, financial account authentication, and resource information processing) are very different. The transaction service end has objective factors such as cost factors and resource consumption, which makes it difficult to support all special character encoding methods. It can be seen that the special character encoding processing method in the related art has great limitations.

[0031] The specification will be described in detail below in conjunction with specific embodiments.

[0032] Please refer to Figure 1 , a scenario diagram of a special character processing system provided in the specification. As Figure 1 indicated, the special character processing system can at least include a user end cluster and a service platform 100.

[0033] The user end cluster can include at least one user end, such as Figure 1 indicated, specifically including user 1 corresponding user end 1, user 2 corresponding user end 2, …, user n corresponding user end n, n is an integer greater than 0.

[0034] The user terminals in the user terminal cluster can be electronic devices with communication functions, including but not limited to wearable devices, handheld devices, personal computers, tablet computers, vehicle-mounted devices, smart phones, computing devices, or other processing devices connected to wireless modems, etc. Electronic devices can be called different names in different networks, such as user equipment, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, cellular phone, cordless phone, personal digital assistant (PDA), electronic device in 5G network or future evolution network, etc.

[0035] The service platform 100 can be a separate server device, such as a rack-mounted, blade, tower, or cabinet server device, or a hardware device with strong computing power such as a workstation, a mainframe computer, etc. It can also be a server cluster composed of multiple servers. Each server in the service cluster can be composed in a symmetrical manner, where each server is functionally and positionally equivalent in the transaction link, and each server can independently provide services. The independent service can be understood as not requiring the assistance of another server.

[0036] In one or more embodiments of the present specification, the service platform 100 can establish a communication connection with at least one user terminal in the user terminal cluster, and complete the interaction of data in the rare character processing process based on the communication connection.

[0037] Illustratively, the service platform 100 can obtain the object name input by the user of the user terminal based on the rare character processing method of the present specification (e.g., the user terminal can send the object name to the service platform 100 when the user inputs the object name). The service platform 100 detects whether the object name contains rare characters. If the object name contains rare characters, the service platform 100 obtains the target rare coding type for the object name, determines the reference rare coding characters of at least one reference rare coding type corresponding to the object name, and then performs character updating processing on the reference rare coding characters in the object name based on the multi-coding rare character library and the target rare coding type to obtain the target object name. Optionally, the service platform 100 can send the target object name to the user terminal to display it to the user of the user terminal.

[0038] Illustratively, the service platform 100 can send the related data (e.g., the multi-encoding rare character library) for rare character processing to the user terminal based on the rare character processing method of the present specification, obtain the object name input by the user from the user terminal, detect whether the object name contains rare characters, if the object name contains rare characters, obtain the target rare encoding type for the object name from the user terminal, determine the reference rare encoding characters of at least one reference rare encoding type corresponding to the object name, and then perform character updating processing on the reference rare encoding characters in the object name based on the multi-encoding rare character library and the target rare encoding type to obtain the target object name. Optionally, based on actual processing transactions, the user terminal can send the character-updated target object name to the service platform for transaction processing, such as authentication based on the service platform, and the like.

[0039] It should be noted that the service platform 100 and at least one user terminal in the user terminal cluster establish a communication connection through a network for interactive communication, wherein the network can be a wireless network or a wired network, the wireless network includes but is not limited to a cellular network, a wireless local area network, an infrared network or a Bluetooth network, and the wired network includes but is not limited to an Ethernet network, a universal serial bus (USB) or a controller area network. In one or more embodiments of the specification, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent the data (e.g., the target compression package) exchanged through the network. In addition, all or some links can be encrypted using conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. In other embodiments, custom and / or dedicated data communication technologies can be used instead of or in addition to the above data communication technologies.

[0040] The rare character processing system embodiments provided by the specification belong to the same concept as the rare character processing method in one or more embodiments. The execution subject corresponding to the rare character processing method involved in one or more embodiments of the specification can be an electronic device, which can be the service platform 100 described above. The execution subject corresponding to the rare character processing method involved in one or more embodiments of the specification can also be an electronic device corresponding to a user end, which is determined based on the actual application environment. The rare character processing system embodiment embodies the implementation process, which can be seen from the method embodiments described below, and will not be described here.

[0041] Based on Figure 1 The scene schematic diagram shown below will be used to introduce the rare character processing method provided by one or more embodiments of the specification in detail.

[0042] Please refer to Figure 2 A flowchart of a rare character processing method is provided for one or more embodiments of the specification. The method can be implemented by relying on a computer program and can be run on a rare character processing device based on the von Neumann system. The computer program can be integrated in an application or run as an independent tool application. The rare character processing device can be an electronic device.

[0043] Specifically, the rare character processing method includes:

[0044] S102: Obtain the input object name and detect whether the object name contains rare characters;

[0045] The object name can be a user name (such as a name), an account name, a geographical name, an address name, etc.

[0046] The object name is composed of a plurality of name characters, which can be understood as a general term for various characters and symbols, including national characters, punctuation marks, graphical symbols, numbers, etc.

[0047] It can be understood that in daily life, some users may have rare character needs, and the object name input by the user with rare character needs may contain rare characters;

[0048] It can be understood that in actual transaction scenarios, users can input object names through the character input component of the user end based on actual transaction needs, and the electronic device can obtain the object name input by the user, and then detect whether the object name contains rare characters;

[0049] It can be understood that the user of the user terminal inputs the object name with rare characters. Rare characters can be divided into two concepts: "rare characters" that individuals do not recognize and "rare characters" that information systems do not recognize. In one or more embodiments of the present specification, rare characters refer to characters (such as Chinese characters) that cannot be normally input, stored, and displayed on devices such as institutional business systems, personal computers, and mobile phone terminals. In some scenarios, these rare characters can be understood as characters that do not exist in the supported character set of devices that provide transaction services (such as real-name authentication transactions, financial processing transactions, online shopping transactions, and account verification transactions). At this time, the transaction server cannot recognize these rare characters that are not in the supported character set.

[0050] In some implementation scenarios, rare characters mainly refer to characters that are not within the range of commonly used character encoding sets. For example, characters that are not within the range of the commonly used GBK character (encoding) set library can be considered rare characters. Common devices usually support the GBK character (encoding) set library.

[0051] In one or more embodiments of the present specification, whether there are rare characters in the object name can be detected based on a commonly used character encoding library such as the GBK character (encoding) set. It can be detected whether each character in the object name is a character in the commonly used character encoding library. If there is at least one character that is not a character in the commonly used character encoding library, it can be determined that the object name contains rare characters. If all characters in the object name are characters in the commonly used character encoding library, it can be determined that the object name does not contain rare characters.

[0052] S104: If the object name contains rare characters, obtain a target rare encoding type for the object name, and determine reference rare encoding characters of at least one reference rare encoding type corresponding to the object name.

[0053] The target rare encoding type is used to indicate the type of rare characters in the object name. In actual applications, the target rare encoding type is the rare encoding type supported by the target transaction server in the target transaction scenario in which the user inputs the object name. For example, in a real-name authentication transaction scenario, the target rare encoding type supported by the real-name authentication server is usually the population information original character encoding type. Only when the rare characters of one or more other rare encoding types involved in the object name are updated to rare characters of the population information original character encoding type, can the object name be recognized by the target transaction server, and the next transaction processing can be performed based on the recognized object name.

[0054] Illustratively, the population information original character encoding type: in Unicode (character encoding), the population information original character encoding corresponds to a code point using area, and the code point using area contains a series of code points, which are not assigned characters by the Unicode Consortium according to the definition. In Unicode (character encoding), three code point using areas are defined: one is located in the basic multilingual plane (U+E000-U+F8FF), and one is located in and almost covers planes 15 and 16 (U+F0000-U+FFFFD, U+100000-U+10FFFD). The code points in these areas cannot be considered as standardized characters of Unicode itself, that is, the code points of very used characters.

[0055] Illustratively, the population information original character corresponding to the population information character library (RKXX) related household department uses the population information original character encoding area to solve the problem of handwritten Chinese character names and place names in history, and is not updated synchronously with Unicode.

[0056] In one or more embodiments of the present specification, the target rare encoding type is determined based on the target transaction scenario corresponding to the user when inputting the object name. The rare encoding type supported by the target transaction service corresponding to the target transaction scenario is obtained or determined as the target rare encoding type for the object name.

[0057] Illustratively, in order to realize the recognition of rare characters, some transaction service ends adopt some rare encoding methods based on the common character set to realize the recognition of rare characters. The rare encoding method supported by the transaction service end includes but is not limited to "all capital pinyin" encoding method, "capital letter pinyin" encoding method, "small pinyin" encoding method, "pinyin with full-angle bracket" encoding method, "pinyin with half-angle bracket" encoding method, "pinyin with square bracket" encoding method, "pinyin with / without tone" encoding method, "one character split into multiple characters" encoding method, "population information original character" encoding method, etc.

[0058] In actual application, there can be one or more reference rare code input modes for a user to input an object name on a user terminal, i.e., there can be a case where at least one reference rare code input mode is used to input the object name. The electronic device can determine the reference rare code characters of at least one reference rare code type corresponding to the object name. For example, the object name includes rare characters input by using the "lowercase Pinyin" input mode, the "Pinyin with full-angle bracket" input mode, and the "one character split into multiple characters" input mode. The electronic device can determine the reference rare code characters of one or more reference rare code types in the object name, such as determining the reference rare code character A of the "lowercase Pinyin" input mode, determining the reference rare code character B of the "Pinyin with full-angle bracket" input mode, and determining the reference rare code character C of the "one character split into multiple characters" input mode.

[0059] S106: performing character updating processing on the reference rare code characters in the object name based on the multi-code rare character library and the target rare code type, to obtain a target object name.

[0060] Optionally, the electronic device can pre-maintain a multi-code rare character library, which includes a plurality of rare character objects, a plurality of rare code input modes available for each rare character object, and rare characters of each rare character object in each rare code input mode.

[0061] Illustratively, the multi-code rare character library is constructed by pre-acquiring a plurality of rare code input modes actually used in an actual environment, determining the rare characters of each rare code input mode for a plurality of rare character objects, and updating and maintaining the multi-code rare character library. The rare characters of different rare code input modes corresponding to the same rare character object are different. In one or more embodiments of the present specification, the multi-code rare character library can be used to quickly implement rare character recognition and rare character updating processing, thereby improving the transcoding efficiency.

[0062] In one or more embodiments of the present specification, the character updating processing on the object name can include querying the rare character object corresponding to the reference rare code character in the multi-code rare character library, obtaining the target rare code character of the target rare code type corresponding to the rare character object, and updating the reference rare code character in the object name by using the target rare code character. It can be understood that, in the case where the reference rare code character type is multiple or the number of reference rare code characters is multiple, the updating process of the multiple reference rare code characters can be completed by referring to the foregoing method, thereby completing the character updating processing on the reference rare code characters in the object name to obtain a target object name.

[0063] Optionally, after obtaining the target object name, the electronic device can request the corresponding transaction server to process the target object name based on the user's transaction demand of inputting the object name in the actual transaction scenario. For example, in the information authentication scenario, the object name can be sent to the information authentication transaction server for information authentication.

[0064] In one or more embodiments of the present specification, the electronic device detects whether the input object name contains an archaic character, in the case that the object name contains an archaic character, acquires a target archaic encoding type for the object name based on the user's actual transaction scenario, determines a reference archaic encoding character of a reference archaic encoding type corresponding to the object name, and performs character updating processing on the reference archaic encoding character in the object name based on the multi-encoding archaic character library and the target archaic encoding type to obtain a target object name. The target object name after character updating can meet the archaic character transaction compatibility demand of the user in daily transactions. Through automatic recognition of archaic characters and implementation of automatic conversion of the target archaic encoding type based on the multi-encoding archaic character library, the situation that the user cannot recognize the semantic meaning of the archaic character in daily transactions based on the input object name can be avoided, and the convenience of the user with archaic character demand in daily transaction scenarios is facilitated.

[0065] For example, in one or more embodiments of the present specification, Figure 3 A flowchart of an exemplary character detection process is shown. Optionally, based on one or more embodiments described above, the detection of whether the object name contains an archaic character includes the following schemes:

[0066] S1022: Detect whether each name character of the object name belongs to a common character encoding library;

[0067] In one or more embodiments of the present specification, character encoding, also known as Unicode, is a set of characters in a character set that is encoded into a specified set of objects (such as bit patterns, natural number sequences, 8-bit groups, or electrical pulses) in order to store text in a computer and transmit it through a communication network. Common character encodings include ASCII, GB2312 encoding, GBK encoding, GB18030 encoding, UTF8, UTF16, etc.

[0068] A common character encoding library is a collection of multiple characters. There are many types of common character encoding libraries, each of which contains a different number of characters. Common character encoding libraries include, for example, ASCII character encoding library, GB2312 character encoding library, BIG5 character encoding library, GB18030 character encoding library, Unicode character encoding library, and GBK character (encoding) encoding library.

[0069] Illustratively, the commonly used character encoding library can be determined based on the actual application environment, and the commonly used character encoding can be, for example, a GBK character (encoding) encoding library.

[0070] The commonly used character can be understood as a character in the commonly used character encoding library.

[0071] It can be understood that the object name is composed of a plurality of name characters, and whether the object name contains an uncommon character can be determined by detecting whether each name character of the object name belongs to the commonly used character in the commonly used character encoding library.

[0072] In a feasible implementation, the detection of whether each name character of the object name belongs to the commonly used character in the commonly used character encoding library can be implemented by constructing or obtaining a commonly used character identification regular expression for commonly used character detection of the commonly used character encoding library. In a specific implementation, the electronic device can obtain the commonly used character identification regular expression for the commonly used character encoding library, and then use the commonly used character identification regular expression to detect whether each name character of the object name belongs to the commonly used character code point range corresponding to the commonly used character encoding library.

[0073] Illustratively, the commonly used character identification regular expression is a regular expression for detecting commonly used characters. Based on the commonly used character identification regular expression, it can be detected whether a name character belongs to the commonly used character code point range corresponding to the commonly used character encoding library. Generally, if a name character belongs to the commonly used character code point range, the name character is a commonly used character. If a name character does not belong to the commonly used character code point range, the name character can be an uncommon character.

[0074] For example, the following part of the commonly used character identification regular expression can be used to detect whether each name character in the object name is a commonly used character in the commonly used character encoding library.

[0075] / *** GBK Chinese character regular* /

[0076] "[\u4e00-\u9fa5]"

[0077] Wherein, “\u” is a unicode code point, 4e00 indicates the start code point of the unicode regular, and 9fa5 indicates the end code point of the unicode regular. The start code point and the end code point constitute the character code point range for the commonly used character encoding library. The commonly used character identification regular expression is used to detect whether the code point corresponding to the name character belongs to the commonly used character code point range, so as to detect whether the name character is a commonly used character in the commonly used character encoding library.

[0078] S1024: If each name character belongs to the commonly used character in the commonly used character encoding library, it is determined that the object name does not contain an uncommon character.

[0079] It can be understood that, by performing the foregoing common character detection process on each name character, if each of the name characters belongs to the common characters of the common character encoding library, the electronic device can determine that the object name does not exist an uncommon character;

[0080] S1026: If there is at least one name character that does not belong to the common characters of the common character encoding library, it is determined that the object name exists an uncommon character.

[0081] It can be understood that, by performing the foregoing common character detection process on each name character, if there is at least one name character that does not belong to the common characters of the common character encoding library, the electronic device can determine that the object name exists an uncommon character;

[0082] In one or more embodiments of the present specification, the common character detection can be quickly implemented by identifying the regular expression for the common characters of the common character encoding library compared with the character-by-character comparison with the name characters, and the character processing efficiency is improved.

[0083] For example, in one or more embodiments of the present specification, Figure 4 An exemplary flowchart of an uncommon encoding character determination process is shown. Optionally, based on one or more embodiments described above, the reference uncommon encoding characters of at least one reference uncommon encoding type corresponding to the object name include the following schemes:

[0084] S2002: Obtain at least one reference uncommon encoding detection method for the object name;

[0085] It can be understood that different uncommon encoding types correspond to different uncommon encoding detection types, and the reference uncommon encoding detection method can be set according to the uncommon encoding detection type;

[0086] The uncommon encoding detection type corresponds to the uncommon encoding type. The uncommon encoding detection type can be understood as the encoding detection type divided according to the uncommon encoding type. Different uncommon encoding types correspond to different encoding characteristics. Based on this, different encoding detection types can be divided according to the encoding detection method for different uncommon encoding types, and the corresponding uncommon encoding detection method is used.

[0087] For example, if the uncommon encoding type is a unicode uncommon encoding type, the unicode uncommon encoding detection method of the unicode uncommon encoding detection type corresponding to the unicode uncommon encoding type can be obtained or determined;

[0088] For example, if the uncommon encoding type is a pinyin uncommon character encoding type, the pinyin uncommon character encoding detection method of the pinyin uncommon character encoding detection type corresponding to the pinyin uncommon character encoding type can be obtained or determined;

[0089] For example, if the rare code type is a one-word-to-multiple-words rare code type, a one-word-to-multiple-words rare code detection method corresponding to the one-word-to-multiple-words rare code detection type of the one-word-to-multiple-words rare code type can be obtained or determined;

[0090] It can be understood that in actual applications, the object name can include rare characters, and in the case of multiple rare characters, multiple rare code types can be used to input the rare characters of the corresponding rare code type. Therefore, one or more reference rare code detection methods for the object name can be set, and then the reference rare code detection methods are used to detect the reference rare code characters of the object name.

[0091] S2004: performing reference rare code character detection on the object name using the reference rare code detection method to obtain a reference detection result;

[0092] The reference detection result can include whether the object name includes reference rare code characters, reference rare code character data, the number of reference rare code characters, and the like.

[0093] It can be understood that there can be multiple reference rare code detection methods, and the reference rare code characters of the object name can be detected using multiple reference rare code detection methods. The reference detection result obtained can be used to determine whether the object name includes reference rare code characters of the corresponding type and the like.

[0094] In a feasible implementation, the detection can be performed based on the code point characteristics of the reference rare code method. Different reference rare code methods can use the code points of the Unicode encoding to establish a code point mapping relationship with the rare character object. Based on this, different reference rare code methods can correspond to one or more code point ranges of the Unicode encoding. For example, the population information original word encoding method uses a code point area, which can correspond to a code point range of the Unicode encoding population information original word area. The Unicode rare code method can correspond to a code point range of the Unicode rare word encoding. The pinyin rare code method can use multiple letters to represent rare words, and the pinyin rare code method can correspond to a range of letter characters. In addition, these ranges of letter characters, ranges of Unicode rare code points, ranges of original word areas, ranges of tone characters, and the like can be combined with regular expressions to implement rare code detection. Furthermore, the ranges of letter characters, ranges of Unicode rare code points, ranges of original word areas, and ranges of tone characters can be used as reference character regular ranges.

[0095] Illustratively, the reference rare code detection manner can be to mine a reference character regular range of a corresponding rare code type, and then to establish a reference rare character recognition regular expression for the reference character regular range, so as to realize reference rare code character detection on the object name and obtain a reference detection result. The rare character detection in the form of the reference character regular range and the reference rare character recognition regular expression can not need to compare rare character shapes, thereby reducing the consumption of computing resources and simplifying the processing flow of rare character detection.

[0096] Optionally, the electronic device can perform the reference rare code character detection on the object name by using the reference rare code detection manner to obtain a reference detection result.

[0097] The electronic device can determine a reference character regular range corresponding to the reference rare code detection manner, determine a reference rare character recognition regular expression based on the reference character regular range, perform reference rare code character detection on the object name by using the reference rare character recognition regular expression, and obtain a reference detection result.

[0098] The reference character regular range is set based on the code point characteristics of a corresponding reference rare code type, for example, the aforementioned letter character range, the unicode rare code point range, the code point range of the original character area, the tone character range, and the like can all be used as the reference character regular range.

[0099] It can be understood that after the reference character regular range is determined, a regular expression can be used to construct a reference rare character recognition regular expression. Subsequently, the reference rare character recognition regular expression can be used to detect the rare character code points of the object name, so as to determine whether the reference rare character recognition regular expression is satisfied, thereby determining whether the rare character code points correspond to the reference character encoding type, the reference rare code character data, the number of reference rare code characters, and the like, and generating a reference detection result.

[0100] The reference rare character recognition regular expression is a regular expression used to detect and recognize a reference rare character of a certain reference rare code type. Based on the reference rare character recognition regular expression, it can be detected whether the rare character in the name character belongs to a reference character regular range of a certain reference character encoding type character. Generally, if the rare character in the name character belongs to the reference character regular range, the name character belongs to the reference rare character of the reference rare character type. If the rare character in the name character does not belong to the reference character regular range, the name character does not belong to the reference rare character of the type.

[0101] For example, in the reference rare code detection mode for the population information original character rare code type, the following pseudo code related to the reference rare character identification regular expression can be used to detect whether the rare characters in the object name are the reference rare characters under the rare code type.

[0102] The reference rare character identification regular expression is used to determine whether the object name contains the population information original character range rare character. The reference detection result is obtained after regular expression determination.

[0103] For example, in the reference rare code detection mode for the population information original character rare code type, the following pseudo code related to the reference rare character identification regular expression can be used to detect whether the rare characters in the object name are the reference rare characters under the rare code type.

[0104] / *** Population information original character rare character regular * /

[0105] "[\ue000-\ufad9]"

[0106] e000 refers to the start code point of the unicode regular expression, and ufad9 refers to the end code point of the unicode regular expression. The start code point and the end code point constitute the reference character regular expression range. It should be noted that the start code point and the end code point are only used to better understand the present embodiment, and in actual application stage, the start code point and the end code point can also be other code point data, which is not limited here.

[0107] For example, in the reference rare code detection mode for the population information original character rare code type, the following pseudo code related to the reference rare character identification regular expression can be used to detect whether the rare characters in the object name are the reference rare characters under the rare code type.

[0108] The reference rare character identification regular expression is used to determine whether the object name contains the population information original character range rare character. The reference detection result is obtained after regular expression determination.

[0109] For example, in the reference rare code detection mode for the population information original character rare code type, the following pseudo code related to the reference rare character identification regular expression can be used to detect whether the rare characters in the object name are the reference rare characters under the rare code type.

[0110] / ***unicode rare character regular* /

[0111] "([\u9fa6-\u9fef]|[\u3400-\u4dff]|[\\x{20000}-\\x{2FFFD}]|[\\x{30000}-\\x{3FF FD}])"

[0112] The “\u” is a Unicode code point, and the “\x” represents a hexadecimal code. The above shows a plurality of reference character regular range (interval), which is formed by a start code point and an end code point, and is a character code point range interval for a common character encoding library. The common character identification regular expression is used to detect whether the code point corresponding to the name character belongs to the Unicode rare character code point range. It should be noted that the foregoing start code point and end code point are only for better understanding of the embodiment, and in the actual application stage, the start code point and end code point can also be other code point data, which is not limited here.

[0113] For example, in the reference rare code detection mode for the Pinyin rare code type, the following part of the reference rare character identification regular expression can be used to detect whether the rare character in the object name is the reference rare character under the rare code type.

[0114] The reference rare character identification regular expression is used to judge whether the object name contains the letter character range corresponding to the Pinyin rare word form. The reference detection result is obtained after the regular judgment.

[0115] Illustratively, only one character in the object name contains a letter, that is, the Pinyin rare word name / ***contains a letter regular* /

[0116] "[a-z A-Z]"

[0117] Illustratively, “a-z” represents the character range interval represented by lowercase letters, and “A-Z” represents the character range interval represented by uppercase letters.

[0118] In a feasible implementation, the detection of the related reference rare code character can be implemented in combination with a multi-code rare word library. Based on the multi-code relationship of the rare word object in the multi-code rare word library, the reference rare character under the corresponding reference rare code type can be searched. The electronic device performs the reference rare code character detection of the object name by using the reference rare code detection mode, and obtains the reference detection result, which can be:

[0119] The electronic device performs the reference rare code character detection of the object name by using at least one reference rare code detection mode based on the multi-code rare word library, and obtains the reference detection result.

[0120] The electronic device performs the query of the rare character in the object name based on one or more reference rare codes in the multi-code rare word library, that is, matches the rare character in the object name with one or more reference rare code characters in the multi-code rare word library to generate a reference detection result. The reference detection result can feed back the reference rare code type to which the rare character in the object name belongs, the reference rare character data, the character position, and other detection results.

[0121] It can be understood that the multi-code mapping represented based on the multi-code library realizes the rare character recognition service capability, and can significantly improve the accuracy of one or more rare character recognitions.

[0122] In a feasible implementation, the electronic device can perform reference rare code character detection on the object name by using the reference rare code detection manner, obtain a reference detection result, and record a reference rare code character of the reference rare code type in the object name based on the reference detection result.

[0123] Illustratively, after performing reference rare code character detection on the rare character in the object name by using the reference rare code detection manner to obtain a reference detection result, if the reference detection result indicates that a certain rare character in the object name is a reference rare character of the reference rare code category, the position of the reference rare character in the object name is recorded, so as to facilitate subsequent character conversion of the reference rare character to a character of the target rare code type.

[0124] Illustratively, the object name can have rare characters input by a user in multiple rare code types. After performing reference rare code character detection on the rare character in the object name by using the reference rare code detection manner, the position of the reference rare character in the object name is directly recorded based on the reference detection result, which can avoid misrecognition in subsequent character conversion and optimize the rare character processing process to achieve accurate character updating of the rare character.

[0125] For example, taking the reference rare code detection manner for the one-character-to-multiple-character rare code type as an example, the reference detection result can be obtained by comparing the one-character-to-multiple-character rare characters in the object name with the one-character-to-multiple-character rare characters in the multi-code rare character library. The reference detection result can feed back that a certain rare character in the object name is a reference rare character of the one-character-to-multiple-character rare code type, reference rare character data (such as character shape), and the like.

[0126] In one or more embodiments of the present specification, after performing reference rare code character detection on the rare character in the object name by using the reference rare code detection manner to obtain a reference detection result, the electronic device marks the position of the reference rare code character of the reference rare code type in the object name by using at least one rare character identifier.

[0127] Illustratively, the electronic device can determine the name position of the reference rare code character of the reference rare code type in the object name, and record the name position.

[0128] Indicatively, the electronic device performing the step of marking the position of the reference rare code characters of the reference rare code type in the object name using at least one rare character identifier may be: determining the rare character identifier corresponding to each of the reference rare code types; and marking the position of the reference rare code characters of the reference rare code type in the object name using each of the rare character identifiers.

[0129] The rare character identifier can be any identifier symbol, such as "#", "¥", "!", etc. Different reference rare code types can be understood to correspond to different rare character identifiers;

[0130] For example, the rare character identifier "#" can represent a rare Unicode encoding type, the rare character identifier "¥" can represent a rare encoding type of "one character split into multiple characters", and "!" can represent a rare Pinyin encoding type;

[0131] It is understandable that using different reference rare encoding types and corresponding reference rare encoding characters to distinguish different types of rare characters in the original object name can reduce the probability of incorrect encoding due to objective semantics in the subsequent character update stage. The probability of incorrect encoding due to objective semantics can be understood as the possibility that different combinations of rare characters may produce certain semantic ambiguities when multiple rare encoding types exist at the same time, which may cause the rare character object recognition machine to misunderstand and thus query the wrong character, resulting in an update error.

[0132] For example, the object name is "Zhang" xin, "" uses the Unicode uncommon encoding type, while "xin" uses the Pinyin uncommon encoding type, so the uncommon character identifier "#" is used to record "". The position of the rare character name is recorded using "!".

[0133] S2006: Based on the reference detection results, determine at least one reference rare code character of the reference rare code type corresponding to the object name.

[0134] In one or more embodiments of the present specification, the electronic device detects whether the input object name contains an unusual character, in the case that the object name contains an unusual character, acquires a target unusual encoding type for the object name based on the actual transaction scenario of the user, and determines a reference unusual encoding character of a reference unusual encoding type corresponding to the object name. The target object name is obtained by performing character updating processing on the reference unusual encoding character in the object name based on the multi-encoding unusual character library and the target unusual encoding type. The target object name after character updating can meet the unusual character transaction compatibility requirement of the user in daily transactions. Through automatic recognition of unusual characters and based on the multi-encoding unusual character library, automatic conversion of the target unusual encoding type is realized, which can avoid the situation that the unusual character semantics cannot be recognized directly based on the user input object name in daily transactions, and facilitates the convenience of users with unusual character requirements in daily transaction scenarios.

[0135] For example, in one or more embodiments of the present specification, Figure 5 An exemplary flowchart of a character updating process is shown. Optionally, based on one or more embodiments described above, the character updating processing on the reference unusual encoding character in the object name based on the multi-encoding unusual character library and the target unusual encoding type to obtain the target object name includes the following solutions:

[0136] S3004: Query the target unusual encoding character of the target unusual encoding type for the reference unusual encoding character in the multi-encoding unusual character library;

[0137] It can be understood that the electronic device determines the reference unusual encoding character of one or more reference unusual encoding types corresponding to the object name based on the reference detection result, and then queries the target unusual encoding character of the target unusual encoding type for the reference unusual encoding character in the multi-encoding unusual character library;

[0138] In one or more embodiments of the present specification, after the electronic device adopts the reference unusual character detection method to detect the unusual character in the object name and obtains the reference detection result, the electronic device marks the position of the reference unusual encoding character of the reference unusual encoding type in the object name by using at least one unusual character identifier. After the electronic device determines the reference unusual encoding character of at least one reference unusual encoding type corresponding to the object name based on each reference detection result, the electronic device can query the target unusual encoding character of the target unusual encoding type for the reference unusual encoding character in the multi-encoding unusual character library based on each unusual character identifier.

[0139] It can be understood that the aforementioned reference rare character corresponding to the different reference rare coding type is used to distinguish the different types of rare characters in the original object name, so that the probability of misencoding due to objective semantics can be reduced in the character updating stage. The electronic device queries the target rare character corresponding to the reference rare character marked by the rare character identifier in the multi-coding rare word library under the target rare coding type. Since different types of reference rare characters use different rare character identifiers, semantic ambiguity objectively generated by different rare character combinations can be avoided, so that the rare character object recognition machine can be prevented from understanding errors;

[0140] For example, the object name is "Zhang xin", and " is recorded by using the rare character identifier "#", and "xin" is recorded by using "!". The electronic device can directly detect the position of the corresponding rare character identifier in the object name or even the number of identifiers, and query the target rare character corresponding to the reference rare character marked by the rare character identifier in the multi-coding rare word library under the target rare coding type one by one. Illustratively, the rare character identifier "#" is used to record the rare character name position of ", and "!" is used to record the rare character position of "xin". The rare character identifier can be directly used to replace the rare character in the object name, and a mapping between the rare character identifier and the rare character can be established. For example, the object name "Zhang xin" is replaced by "Zhang #!", and then each rare character identifier in the object name is queried in the multi-coding rare word library to obtain the target rare character corresponding to the reference rare character under the target rare coding type. S3006: Perform character updating processing on the reference rare coding character of the reference rare coding type in the object name based on the target rare coding character, and obtain a target object name.

[0141] Illustratively, the rare character object corresponding to the reference rare coding character is queried in the multi-coding rare word library, the target rare character corresponding to the rare character object under the target rare coding type is obtained, and then the reference rare coding character in the object name is updated and replaced by using the target rare character, so as to obtain the target object name. It can be understood that in the case that the reference rare coding character type or the number of reference rare coding characters is multiple, the updating process of the multiple reference rare coding characters can be completed by referring to the aforementioned method, so as to complete the character updating processing of the reference rare coding character in the object name, and obtain the target object name.

[0142] Illustratively, the rare character object corresponding to the reference rare coding character is queried in the multi-coding rare word library, the target rare character corresponding to the rare character object under the target rare coding type is obtained, and then the reference rare coding character in the object name is updated and replaced by using the target rare character, so as to obtain the target object name. It can be understood that in the case that the reference rare coding character type or the number of reference rare coding characters is multiple, the updating process of the multiple reference rare coding characters can be completed by referring to the aforementioned method, so as to complete the character updating processing of the reference rare coding character in the object name, and obtain the target object name. ​

[0143] In one or more embodiments of the present specification, the electronic device detects whether the input object name has an obscure character, in the case that the object name has an obscure character, acquires a target obscure coding type for the object name based on the actual transaction scenario of the user, and determines a reference obscure coding character of a reference obscure coding type corresponding to the object name. The character updating module updates the reference obscure coding character in the object name based on a multi-coding obscure character library and the target obscure coding type to obtain a target object name. The target object name after character updating can meet the obscure character transaction compatibility requirement of the user in the daily transaction. Through automatic recognition of obscure characters and based on the multi-coding obscure character library, automatic conversion of the target obscure coding type is realized, which can avoid the situation that the obscure character semantics cannot be recognized directly based on the object name input by the user in the daily transaction, and facilitates the convenience of the user with obscure character requirements in the daily transaction scenario.

[0144] The following will be described in detail Figure 6 The obscure character processing device provided in the present specification will be described in detail. It should be noted that Figure 6 The obscure character processing device shown in the present specification is used to execute the method of the present specification Figures 1-5 The method of the embodiment shown in the present specification is only shown in part related to the present specification for the convenience of description, and the specific technical details not disclosed are referred to the present specification Figures 1-5 The embodiment shown in the present specification.

[0145] Please refer to Figure 6 which shows the structure diagram of the obscure character processing device of the present specification. The obscure character processing device 1 can be realized by software, hardware or combination of the two to become all or part of the user terminal. According to some embodiments, the obscure character processing device 1 includes an obscure character processing module 11, an obscure character processing module 12 and an obscure character processing module 13, which are specifically used for:

[0146] The name detection module 11 is used to acquire the input object name and detect whether the object name has an obscure character;

[0147] The coding processing module 12 is used to acquire the target obscure coding type for the object name if the object name has an obscure character, and determine the reference obscure coding character of at least one reference obscure coding type corresponding to the object name;

[0148] The character updating module 13 is used to update the reference obscure coding character in the object name based on a multi-coding obscure character library and the target obscure coding type to obtain a target object name.

[0149] Optionally, the name detection module 11 is used to:

[0150] detecting whether each name character of the object name belongs to a common character of a common character encoding library;

[0151] if each name character belongs to the common character of the common character encoding library, determining that the object name does not exist an uncommon character;

[0152] if at least one name character does not belong to the common character of the common character encoding library, determining that the object name exists an uncommon character.

[0153] Optionally, the name detection module 11 is configured to:

[0154] obtain a common character recognition regular expression for the common character of the common character encoding library;

[0155] detect whether each name character of the object name belongs to a common character code point range corresponding to the common character of the common character encoding library by using the common character recognition regular expression.

[0156] Optionally, the encoding processing module 12 is configured to:

[0157] obtain at least one reference uncommon encoding detection manner for the object name;

[0158] perform reference uncommon encoding character detection on the object name by using the reference uncommon encoding detection manner to obtain a reference detection result;

[0159] determine reference uncommon encoding characters of at least one reference uncommon encoding type corresponding to the object name based on the reference detection result.

[0160] Optionally, the encoding processing module 12 is configured to: determine a reference character regular range corresponding to the reference uncommon encoding detection manner, determine a reference uncommon character recognition regular expression based on the reference character regular range, perform reference uncommon encoding character detection on the object name by using the reference uncommon character recognition regular expression to obtain a reference detection result; and / or,

[0161] perform reference uncommon encoding character detection on the object name by using at least one reference uncommon encoding detection manner of the multi-encoding uncommon character library to obtain a reference detection result.

[0162] Optionally, the encoding processing module 12 is configured to: record reference uncommon encoding characters of a reference uncommon encoding type in the object name based on the reference detection result.

[0163] Optionally, the character updating module 13 is configured to: query target uncommon encoding characters of the target uncommon encoding type for the reference uncommon encoding characters in the multi-encoding uncommon character library;

[0164] character updating processing on the reference rare code characters of the reference rare code type in the object name based on the target rare code characters, to obtain a target object name.

[0165] Optionally, the character updating module 13 is configured to mark positions of the reference rare code characters of the reference rare code type in the object name by using at least one rare character identifier.

[0166] The target rare code characters of the target rare code type for the reference rare code characters are queried in the multi-code rare word library, including:

[0167] The target rare code characters of the target rare code type for the reference rare code characters are respectively queried in the multi-code rare word library based on each of the rare character identifiers.

[0168] Optionally, the character updating module 13 is configured to determine the rare character identifiers corresponding to the reference rare code types respectively.

[0169] The positions of the reference rare code characters of the reference rare code type in the object name are marked by using the rare character identifiers.

[0170] It should be noted that the rare word processing device provided in the above embodiments is only used as an example to divide the above functions, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the rare word processing device and the rare word processing method provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.

[0171] The serial number of the above description is only for description, not representing the advantages and disadvantages of the embodiments.

[0172] In one or more embodiments of the present specification, the electronic device detects whether the input object name contains an unusual character, obtains a target unusual coding type for the object name based on the actual transaction scenario of the user in the case that the object name contains an unusual character, and determines a reference unusual coding character corresponding to the reference unusual coding type of the object name. The target object name is obtained by performing character updating processing on the reference unusual coding character in the object name based on the multi-coding unusual word library and the target unusual coding type. The target object name after character updating can meet the unusual word transaction compatibility requirements of the user in daily transactions. Through automatic recognition of unusual words and based on the multi-coding unusual word library, automatic conversion of the target unusual coding type is realized, which can avoid the situation that the unusual character semantics cannot be recognized directly based on the user input object name in daily transactions, and facilitates the convenience of users with unusual word requirements in daily transaction scenarios.

[0173] The present specification also provides a computer storage medium, which can store a plurality of instructions adapted to be loaded and executed by a processor to implement the unusual word processing method of the above-mentioned Figures 1-5 embodiment. The specific implementation process can be referred to the specific description of the above-mentioned Figures 1-5 embodiment, which will not be repeated here.

[0174] The present specification also provides a computer program product, which stores at least one instruction loaded and executed by the processor to implement the unusual word processing method of the above-mentioned Figures 1-5 embodiment. The specific implementation process can be referred to the specific description of the above-mentioned Figures 1-5 embodiment, which will not be repeated here.

[0175] Please refer to Figure 7 , which shows the structural block diagram of the electronic device provided by an exemplary embodiment of the present specification. The electronic device in the present specification can include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140 and a bus 150. The processor 110, the memory 120, the input device 130 and the output device 140 can be connected through the bus 150.

[0176] The processor 110 can include one or more processing cores. The processor 110 connects various parts within the entire electronic device with various interfaces and lines, performs various functions of the electronic device 100 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Alternatively, the processor 110 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), a programmable logic array (PLA). The processor 110 can integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes an operating system, a user interface, and an application program, etc.; the GPU is responsible for rendering and drawing display content; and the modem is used for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 110, but be implemented by a separate communication chip.

[0177] The memory 120 can include a random access memory (RAM) and can also include a read-only memory (ROM). Alternatively, the memory 120 includes a non-transitory computer-readable storage medium. The memory 120 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 can include a program storage area and a data storage area, wherein the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing each of the following method embodiments, etc., the operating system can be an Android system, an IOS system developed by Apple Inc., a system developed based on the Android system or other systems. The data storage area can also store data created by the electronic device in use, such as a phone book, audio and video data, chat record data, etc.

[0178] Referring to Figure 8As shown, the memory 120 can be divided into an operating system space and a user space, the operating system runs in the operating system space, and native and third-party applications run in the user space. In order to ensure that different third-party applications can achieve good running effect, the operating system allocates corresponding system resources for different third-party applications. However, there are also differences in the demand for system resources in different application scenarios in the same third-party application. For example, in the local resource loading scenario, the third-party application has a higher requirement for the disk reading speed; in the animation rendering scenario, the third-party application has a higher requirement for the GPU performance. However, the operating system and the third-party application are independent of each other, and the operating system often cannot timely perceive the current application scenario of the third-party application, resulting in that the operating system cannot perform targeted system resource adaptation according to the specific application scenario of the third-party application.

[0179] In order to enable the operating system to distinguish the specific application scenario of the third-party application, it is necessary to open up the data communication between the third-party application and the operating system, so that the operating system can obtain the current scenario information of the third-party application at any time, and then perform targeted system resource adaptation based on the current scenario.

[0180] Taking the Android system as an example, the programs and data stored in the memory 120 are as follows Figure 9As shown, the memory 120 can store a Linux kernel layer 320, a system runtime library layer 340, an application framework layer 360, and an application layer 380, wherein the Linux kernel layer 320, the system runtime library layer 340, and the application framework layer 360 belong to an operating system space, and the application layer 380 belongs to a user space. The Linux kernel layer 320 provides underlying drivers for various hardware of the electronic device, such as display drivers, audio drivers, camera drivers, Bluetooth drivers, Wi-Fi drivers, power management, and the like. The system runtime library layer 340 provides main feature support for the Android system through some C / C++ libraries. For example, an SQLite library provides database support, an OpenGL / ES library provides 3D drawing support, a Webkit library provides browser kernel support, and the like. An Android runtime is also provided in the system runtime library layer 340, which mainly provides some core libraries to allow developers to use the Java language to write Android applications. The application framework layer 360 provides various APIs that can be used when building an application, and developers can also build their own applications by using these APIs, such as activity management, window management, view management, notification management, content provider, package management, call management, resource management, and location management. At least one application program is running in the application layer 380, which can be native applications provided by the operating system, such as a contact program, a message program, a clock program, a camera application, and the like, or third-party applications developed by third-party developers, such as game applications, instant messaging programs, photo beautification programs, and the like.

[0181] For example, taking an IOS system as the operating system, the programs and data stored in the memory 120 can include an IOS kernel 310, an IOS runtime library 330, an application framework 350, and an application 370. Figure 10As shown, the IOS system includes: a core operating system layer 420, a core service layer 440, a media layer 460, and a Cocoa Touch layer 480. The core operating system layer 420 includes an operating system kernel, drivers, and low-level hardware abstractions that provide more hardware-specific functionality to program frameworks in the core service layer 440. The core service layer 440 provides system services and / or program frameworks that applications need, such as a Foundation framework, an account framework, an advertisement framework, a data storage framework, a network connection framework, a geographic location framework, a motion framework, and the like. The media layer 460 provides interfaces for applications related to audio and video, such as interfaces related to graphics images, interfaces related to audio technology, interfaces related to video technology, an AirPlay interface for wireless audio and video transmission technology, and the like. The Cocoa Touch layer 480 provides various commonly used interface-related frameworks for application development, and is responsible for user touch interaction on the electronic device. For example, a local notification service, a remote push service, an advertisement framework, a game tool framework, a message user interface (UI) framework, a user interface UIKit framework, a map framework, and the like.

[0182] In Figure 10 In the framework shown, the frameworks related to most applications include, but are not limited to, the Foundation framework in the core service layer 440 and the UIKit framework in the Cocoa Touch layer 480. The Foundation framework provides many basic object classes and data types, and provides the most basic system services for all applications, and is UI-independent. The UIKit framework provides basic UI class libraries for creating touch-based user interfaces, and iOS applications can provide UIs based on the UIKit framework, so it provides the basic framework of the application for building user interfaces, drawing, processing and user interaction events, responding to gestures, and the like.

[0183] In the IOS system, the manner and principle of implementing data communication between the third-party application and the operating system can refer to the Android system, and the present specification will not be repeated here.

[0184] The input device 130 is configured to receive input instructions or data, and the input device 130 includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is configured to output instructions or data, and the output device 140 includes but is not limited to a display device and a speaker. In an example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 are a touch display screen configured to receive a touch operation of a user using a finger, a stylus, or any suitable object on or near the touch display screen, and display a user interface of each application. The touch display screen is usually arranged on a front panel of the electronic device. The touch display screen can be designed as a full screen, a curved screen, or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, which is not limited in the present specification.

[0185] In addition, those skilled in the art can understand that the structure of the electronic device shown in the above-described drawings does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than those shown in the drawings, or combine certain components, or different component arrangements. For example, the electronic device further includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a Bluetooth module, and the like, which are not described herein.

[0186] In the present specification, the execution subject of each step can be the electronic device described above. Alternatively, the execution subject of each step is an operating system of the electronic device. The operating system can be an Android system, an IOS system, or other operating systems, which are not limited in the present specification.

[0187] The electronic device of the present specification can further have a display device installed thereon. The display device can be various devices capable of realizing a display function, such as a cathode ray tube display (CR), a light-emitting diode display (LED), an electronic ink screen, a liquid crystal display (LCD), a plasma display panel (PDP), and the like. A user can use the display device on the electronic device 101 to view displayed text, images, videos, and the like. The electronic device can be a smart phone, a tablet computer, a game device, an AR (Augmented Reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook computer, a desktop computing device, a wearable device such as an electronic watch, electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, an electronic clothing, and the like.

[0188] In Figure 7 In the electronic device shown, the processor 110 can be configured to invoke an application stored in the memory 120, and specifically configured to perform the following operations:

[0189] Obtain the input object name, and detect whether the object name contains an unusual character;

[0190] If the object name contains an unusual character, obtain a target unusual encoding type for the object name, and determine a reference unusual encoding character of at least one reference unusual encoding type corresponding to the object name;

[0191] Based on a multi-encoding unusual character library and the target unusual encoding type, perform character updating processing on the reference unusual encoding character in the object name to obtain a target object name.

[0192] In one embodiment, the processor 110, when performing the detection of whether the object name contains an unusual character, performs the following steps:

[0193] Detect whether each name character of the object name belongs to a common character of a common character encoding library;

[0194] If each name character belongs to a common character of the common character encoding library, it is determined that the object name does not contain an unusual character;

[0195] If at least one name character does not belong to a common character of the common character encoding library, it is determined that the object name contains an unusual character.

[0196] In one embodiment, the processor 110, when performing the detection of whether each name character of the object name belongs to a common character of the common character encoding library, performs the following steps:

[0197] Obtain a common character recognition regular expression for the common character encoding library;

[0198] Use the common character recognition regular expression to detect whether each name character of the object name belongs to a common character code point range corresponding to the common character encoding library.

[0199] In one embodiment, the processor 110, when performing the determination of the reference unusual encoding character of at least one reference unusual encoding type corresponding to the object name, performs the following steps:

[0200] Obtain at least one reference unusual encoding detection method for the object name;

[0201] The reference rare code detection manner is used to detect the rare code characters in the object name, and a reference detection result is obtained.

[0202] Based on the reference detection result, a reference rare code type corresponding to the object name is determined.

[0203] In one embodiment, the processor 110, when performing the step of using the reference rare code detection manner to detect the rare code characters in the object name, obtains a reference detection result, further performs the following steps:

[0204] A reference character regular range corresponding to the reference rare code detection manner is determined, a reference rare character recognition regular expression is determined based on the reference character regular range, the reference rare code characters in the object name are detected using the reference rare character recognition regular expression, and a reference detection result is obtained; and / or,

[0205] The rare code characters in the object name are detected using at least one reference rare code detection manner based on the multi-code rare word library, and a reference detection result is obtained.

[0206] In one embodiment, after the processor 110 performs the step of using the reference rare code detection manner to detect the rare code characters in the object name and obtains a reference detection result, the processor 110 further performs the following steps:

[0207] Based on the reference detection result, a reference rare code type corresponding to the object name is determined.

[0208] In one embodiment, after the processor 110 performs the step of using the reference rare code detection manner to detect the rare code characters in the object name and obtains a reference detection result, the processor 110 further performs the following steps:

[0209] The target rare code character of the target rare code type corresponding to the reference rare code character is queried in the multi-code rare word library;

[0210] The reference rare code character of the reference rare code type in the object name is updated based on the target rare code character, and a target object name is obtained.

[0211] In one embodiment, the processor 110, when performing the rare word processing method, further performs the following steps:

[0212] At least one rare character mark is used to mark the position of the reference rare code character of the reference rare code type in the object name.

[0213] The target rare code character of the target rare code type for the reference rare code character is queried in the multi-code rare character library based on each rare character identifier.

[0214] The target rare code character of the target rare code type for the reference rare code character is queried in the multi-code rare character library based on each rare character identifier.

[0215] In one embodiment, the processor 110 performs the position marking of the reference rare code character of the reference rare code type in the object name by using at least one rare character identifier, including:

[0216] The rare character identifier corresponding to each reference rare code type is determined.

[0217] The position marking of the reference rare code character of the reference rare code type in the object name is performed by using each rare character identifier.

[0218] In one or more embodiments of the present specification, the electronic device detects whether the input object name contains rare characters, in the case that the object name contains rare characters, acquires the target rare code type for the object name based on the actual transaction scenario of the user, and determines the reference rare code character of the reference rare code type corresponding to the object name, and performs character updating processing on the reference rare code character in the object name based on the multi-code rare character library and the target rare code type to obtain a target object name. The target object name after character updating can meet the rare character transaction compatibility requirements of the user in daily transactions, and through automatic identification of rare characters and based on the multi-code rare character library, automatic conversion of the target rare code type is realized, which can avoid the situation that the user cannot identify the semantics of rare characters in daily transactions based on the input object name, and facilitates the convenience of users with rare character requirements in daily transaction scenarios.

[0219] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by a computer program instructing related hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned embodiments. The storage medium can be a magnetic disc, an optical disc, a read-only memory, or a random access memory, etc.

[0220] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of the present specification are authorized by the user or fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions. For example, the object names, rare characters and the like involved in the present specification are obtained under sufficient authorization.

[0221] The above only discloses the preferred embodiments of the present specification, and of course cannot limit the scope of the rights of the present specification, so equivalent changes made according to the claims of the present specification still fall within the scope covered by the present specification.

Claims

1. A method for processing uncommon characters, the method comprising: Obtain the input object name and check if the object name contains uncommon characters; If the object name contains rare characters, then obtain the target rare encoding type for the object name, and obtain at least one reference rare encoding detection method for the object name. Use the reference rare encoding detection method to detect the reference rare encoding characters in the object name to obtain a reference detection result. Based on each of the reference detection results, determine the reference rare encoding characters of at least one reference rare encoding type corresponding to the object name. Search in the multi-encoding rare character set for the target rare character of the target rare encoding type for the reference rare encoded character; Based on the target rare character, the reference rare character of the reference rare character type in the object name is updated to obtain the target object name. The multi-encoding rare character library consists of several rare character objects, multiple rare character encoding types corresponding to each rare character object, and rare character encoding characters of the rare character object under each rare character encoding type.

2. The method according to claim 1, wherein detecting whether the object name contains rare characters includes: Detect whether each character in the object name belongs to a common character in a common character encoding library; If each of the name characters belongs to the common characters in the common character encoding library, then it is determined that the object name does not contain rare characters; If at least one character in the name is not a common character in the common character encoding library, then the object name is determined to contain rare characters.

3. The method according to claim 2, wherein detecting whether each character of the object name belongs to the common characters in the common character encoding library includes: Obtain the common character recognition regular expressions for the commonly used character encoding library; The commonly used character recognition regular expression is used to detect whether each character of the object name belongs to the range of commonly used character code points corresponding to the commonly used character encoding library.

4. The method according to claim 1, wherein the step of performing reference rare code character detection on the object name using the reference rare code detection method to obtain a reference detection result includes: Determine the reference character regular expression range corresponding to the reference rare character encoding detection method; determine the reference rare character recognition regular expression based on the reference character regular expression range; use the reference rare character recognition regular expression to perform reference rare character detection on the object name to obtain the reference detection result; and / or, Based on a multi-encoding rare character library, the object name is subjected to reference rare character detection using at least one of the aforementioned reference rare encoding detection methods to obtain a reference detection result.

5. The method according to claim 1, after performing reference rare code character detection on the object name using the reference rare code detection method to obtain the reference detection result, further comprising: Based on the reference detection results, record the reference rare code characters of the reference rare code type in the object name.

6. The method according to claim 1, further comprising: The position of the reference rare code characters of the reference rare code type in the object name is marked by at least one rare character identifier; The step of querying the target rare character of the target rare character type in the multi-encoding rare character library for the reference rare character includes: Based on each of the rare character identifiers, query the target rare character of the target rare character type in the multi-encoding rare character library for the reference rare character.

7. The method according to claim 6, wherein the step of using at least one rare character identifier to mark the position of the reference rare code character of the reference rare code type in the object name includes: Determine the rare character identifiers corresponding to each of the aforementioned rare encoding types; The rare character identifiers are used to mark the positions of the reference rare code characters of the reference rare code type in the object name.

8. A device for processing uncommon characters, the device comprising: The name detection module is used to obtain the input object name and detect whether the object name contains rare characters; The encoding processing module is used to obtain the target rare encoding type for the object name if the object name contains rare characters, and to obtain at least one reference rare encoding detection method for the object name, to perform reference rare encoding character detection on the object name using the reference rare encoding detection method, to obtain reference detection results, and to determine the reference rare encoding characters of at least one reference rare encoding type corresponding to the object name based on each of the reference detection results. The character update module is used to query the target rare character of the target rare character type in the multi-encoding rare character library for the reference rare character, and perform character update processing on the reference rare character of the reference rare character type in the object name based on the target rare character to obtain the target object name. The multi-encoding rare character library consists of several rare character objects, multiple rare encoding methods corresponding to each rare character object, and rare characters of the rare character object under each rare encoding method.

9. A computer storage medium storing a plurality of instructions adapted for loading by a processor and executing the method steps of any one of claims 1 to 7.

10. A computer program product storing at least one instruction, said at least one instruction being loaded by a processor and executing the method steps of any one of claims 1 to 7.

11. An electronic device, comprising: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed the method steps as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for mutual conversion of simplified Chinese and traditional Chinese

    CN108108337A

  • Name storage method and device based on character conversion and computer equipment

    CN111046631A