CN106502971B - Input information processing method and device and mobile terminal - Google Patents

Input information processing method and device and mobile terminal Download PDF

Info

Publication number
CN106502971B
CN106502971B CN201610951071.9A CN201610951071A CN106502971B CN 106502971 B CN106502971 B CN 106502971B CN 201610951071 A CN201610951071 A CN 201610951071A CN 106502971 B CN106502971 B CN 106502971B
Authority
CN
China
Prior art keywords
input information
coding
coding mode
current input
character length
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610951071.9A
Other languages
Chinese (zh)
Other versions
CN106502971A (en
Inventor
吕欣阳
田海燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610951071.9A priority Critical patent/CN106502971B/en
Priority to CN202010261393.7A priority patent/CN111507068B/en
Publication of CN106502971A publication Critical patent/CN106502971A/en
Application granted granted Critical
Publication of CN106502971B publication Critical patent/CN106502971B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention provides an input information processing method and device and a mobile terminal. The processing method of the input information provided by the invention comprises the following steps: determining a coding mode supported by current input information; determining a character length limit value corresponding to the coding mode; encoding the current input information according to the encoding mode, and determining the length of the encoded character; and judging whether the coded character length is larger than the character length limit value or not, if so, sending prompt information to a user to indicate the user to stop inputting information. The invention can improve the usability of the input information of the mobile terminal.

Description

Input information processing method and device and mobile terminal
Technical Field
The present invention relates to electronic technologies, and in particular, to a method and an apparatus for processing input information, and a mobile terminal.
Background
With the development of mobile communication technology, the mobile terminal has an increasingly close relationship with the user in daily life, study, entertainment, and the like.
Users tend to use mobile terminals to process information, for example, the mobile terminals store information, and the traditional information processing methods of manually recording information are gradually abandoned. The user uses the mobile terminal to process information, at least the information is input into the mobile terminal, and the mobile terminal stores the input information.
At present, most of processing input information only prompts a user that the character length of the input information is out of limit in the process of storing the input information, and the usability is poor until the storage is abnormal.
Disclosure of Invention
The invention provides an information processing method, an information processing device and a mobile terminal, which aim to improve the usability of the mobile terminal for input information.
The invention provides a method for processing input information, which comprises the following steps:
determining a coding mode supported by current input information;
determining a character length limit value corresponding to the coding mode;
encoding the current input information according to the encoding mode, and determining the length of the encoded character;
and judging whether the coded character length is larger than the character length limit value or not, if so, sending prompt information to a user to indicate the user to stop inputting information.
The present invention also provides an input information processing apparatus, including:
the first determining module is used for determining the coding mode supported by the current input information;
the second determining module is used for determining the character length limit value corresponding to the coding mode;
the encoding module is used for encoding the current input information according to the encoding mode and determining the length of the encoded character;
a judging module for judging whether the coded character length is larger than the character length limit value,
and the prompting module is used for sending prompting information to a user to indicate the user to stop inputting information if the character length of the current input information is greater than the character length limit value.
The present invention also provides a mobile terminal, comprising: an input device, an output device, a processor, and a memory; the input device and the output device are respectively connected with the processor, and the processor is also connected with the memory;
the input device is used for receiving input information and transmitting the input information to the processor;
the memory to store program instructions;
the processor is configured to call the program instruction stored in the memory to determine a coding mode supported by the input information, determine a character length limit value corresponding to the coding mode, encode the current input information according to the coding mode, and determine the coded character length; and judging whether the coded character length is larger than the character length limit value or not, if so, controlling the output equipment to send prompt information to the user so as to instruct the user to stop inputting information.
The input information processing method, the input information processing device and the mobile terminal can determine the coding mode supported by the current input information, determine the character length limit value corresponding to the coding mode, code the current input information according to the coding mode to determine the coded character length, judge whether the coded character length is greater than the character length limit value or not, and send prompt information to a user if the coded character length is greater than the character length limit value so as to instruct the user to stop inputting information. The method can send prompt information to the user when the character length of the current input information after being coded is larger than the character length limit value in the information input process, and indicates the user to stop inputting the information, but does not prompt the user that the character length of the input information is over-limit in the input information storage process, so that abnormal storage caused by overlong input information is avoided, the usability of the mobile terminal for the input information is improved, and the user experience is improved.
Drawings
FIG. 1 is a flow chart of a method for processing input information according to the present invention;
FIG. 2 is a flow chart of another method for processing input information according to the present invention;
FIG. 3 is a flow chart of another method for processing input information according to the present invention;
FIG. 4 is a schematic structural diagram of an apparatus for processing input information according to the present invention;
FIG. 5 is a schematic structural diagram of another input information processing apparatus provided in the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal according to the present invention.
Detailed Description
The processing method of each input information provided by the invention can be executed by the processing device of the input information, and the processing device of the input information can be integrated in any mobile terminal capable of inputting information in a software and/or hardware mode. The processing means for inputting information may be located in an input control of the mobile terminal, for example, or may be integrated with other controls within the mobile terminal. The mobile terminal may be any mobile terminal capable of inputting information, such as a mobile phone or a tablet computer.
Fig. 1 is a flowchart of a processing method of input information according to the present invention. As shown in fig. 1, the processing method of the input information may include the following steps:
and S101, determining a coding mode supported by the current input information.
Specifically, the current input information may include: a first character received through the input device, and a second character received through the input device before the first character. The second character is located, for example, in a cache of the mobile terminal. For example, the input device may include: at least one of a touch display screen, a physical key and a voice input device. The voice input device may be a Microphone (Mic for short). For example, in the method, the encoding mode supported by the current input information may be determined from a plurality of encoding modes. The plurality of encoding modes may be encoding modes supported by the mobile terminal.
It should be noted that the method may be a processing method that executes the input information every time an input character is received. The current input information may be characters corresponding to contact information, such as contact name characters.
And S102, determining the character length limit value corresponding to the coding mode.
Specifically, the character length limits corresponding to different encoding modes are different, and in the method, after the encoding mode supported by the current input information is determined, the character length limit corresponding to the encoding mode is determined, and then the current input information is encoded according to the encoding mode.
S103, encoding the current input information according to the encoding mode and determining the length of the encoded character.
Specifically, in S103, all characters of the current input information may be encoded according to the encoding method to obtain the encoded current input information, and then the character length of the encoded current input information may be determined.
S104, judging whether the coded character length is larger than the character length limit value or not.
Specifically, in S104, the encoded character length may be compared with the character length limit value, so as to determine whether the encoded character length is greater than the character length limit value.
And S105, if the coded character length is larger than the character length limit value, sending prompt information to a user to indicate the user to stop inputting information.
Specifically, the method may send the prompt message to the user in a vibration mode, or may send the prompt message to the user in a text or voice mode. Currently, the prompt message may be sent to the user in other manners, which is not intended to limit the present invention. If the length of the coded character is larger than the character length limit value, the method can also stop obtaining the information input by the input equipment.
Optionally, the method may further include:
if the coded word length is smaller than the word length limit, the steps of S101-S105 are continuously executed.
The input information processing method provided by the invention can determine the coding mode supported by the current input information, determine the character length limit value corresponding to the coding mode, code the current input information according to the coding mode to determine the coded character length, judge whether the coded character length is greater than the character length limit value or not, and send prompt information to a user if the coded character length is greater than the character length limit value so as to instruct the user to stop inputting information. The method can send prompt information to the user when the character length of the current input information after being coded is larger than the character length limit value in the information input process, and indicates the user to stop inputting the information, but does not prompt the user that the character length of the input information is over-limit in the input information storage process, so that abnormal storage caused by overlong input information is avoided, the usability of the mobile terminal for the input information is improved, and the user experience is improved.
Optionally, in the method for processing input information described above, the determining, in S101, the encoding mode supported by the current input information may include:
determining a first coding mode supported by the current input information from a plurality of coding modes according to a preset coding mode arrangement sequence; the sequence of the encoding modes is the sequence of the character length limit values corresponding to the encoding modes from large to small.
Since the order of the encoding modes is from large to small, the character length limit corresponding to the first encoding mode supported by the current input information in the plurality of encoding modes is the maximum character length limit supported by the current input information. Therefore, in this method, the first encoding scheme supported by the current input information is determined from the plurality of encoding schemes in the order of increasing the character length limit corresponding to the encoding scheme, so that the usability of the input information can be improved and the information amount of the input information can be increased.
Optionally, the present invention further provides a method for processing input information. Fig. 2 is a flowchart of another input information processing method provided by the present invention. As shown in fig. 2, the determining the first coding mode supported by the current input information from the multiple coding modes according to the preset coding mode ranking order may include:
s201, judging whether the current input information supports a first coding mode in the plurality of coding modes.
S202, if the current input information supports the first coding method, determining that the first coding method supported by the current input information is a first coding method of the plurality of coding methods.
S203, if the current input information does not support the first coding mode, continuously determining whether the current input information supports a second coding mode of the multiple coding modes until the first coding mode supported by the current input information is determined.
The character length limit value corresponding to the first coding mode is larger than the character length limit value corresponding to the second coding mode.
Specifically, the first encoding method and the second encoding method may be any encoding method other than the last encoding method of the plurality of encoding methods. The second encoding method may be a next encoding method of the first encoding method after the plurality of encoding methods are arranged according to a preset encoding method.
If the second encoding mode is a previous encoding mode of the last encoding mode among the plurality of encoding modes and the current input information supports a second encoding mode among the plurality of encoding modes, the method may determine the second encoding mode as a first encoding mode supported by the current input information among the plurality of encoding modes; if the current input information does not support a second encoding mode of the plurality of encoding modes, directly determining the second encoding mode, that is, the last encoding mode of the plurality of encoding modes is the first encoding mode supported by the current input information.
Optionally, the multiple encoding modes include: an 8-bit (bit) encoding mode, an 81 encoding mode of a 2-byte unit Character Set (UCS-2 for short), and a 16-bit Unicode Transformation Format (UTF-16 for short).
Specifically, the character length limit corresponding to the 8-bit (bit) encoding mode may be 14 bytes; the character length limit value corresponding to the 81 encoding mode of the UCS-2, also called 0X81 encoding mode, may be 11 bytes; the character length limit value corresponding to the UTF-16 encoding mode may be 6 bytes.
The invention also provides a processing method of the input information. Fig. 3 is a flowchart of another input information processing method provided by the present invention. As shown in fig. 3, the method for processing the input information may include:
s301, receiving information input by a user, wherein the input information comprises name information of a contact person.
S302, whether the input information supports an 8-bit coding mode is determined.
Specifically, in S302, it may be determined whether each character of the input information is in a preset encoding table, and if each character corresponding to the input information is in the encoding table, it may be determined that the input information supports an 8-bit encoding mode; on the contrary, if the character corresponding to the input information has the content which is not in the code table, the input information can be determined not to support the 8-bit coding mode. For example, the S302 may be, for example, invoking an interface control code of an Android operation (Android) system, such as a gsm alpha beta.
And S303, if the input information supports the 8-bit coding mode, determining a character length limit value corresponding to the 8-bit coding mode, coding the current input information according to the 8-bit coding mode, and determining the coded character length.
S304, judging whether the coded character length is larger than the character length limit value corresponding to the 8-bit coding mode.
S305, if the coded character length is larger than the character length limit value corresponding to the 8-bit coding mode, sending prompt information to a user to instruct the user to stop inputting information.
If the coded word length is smaller than the word length limit corresponding to the 8-bit coding scheme, the process returns to the step S301.
S306, if the input information does not support the 8-bit coding mode, determining whether the input information supports the 81 coding mode of UCS-2.
Specifically, in S306, each character in the input information may be converted into a Unicode (Unicode), such as 0 xxxxxx format, and if the 16-ary number of bits in the Unicode of each character is less than 4 bits, the higher order is complemented by 0. If the decimal number corresponding to the unicode of each character is less than 128, each character in the input Information is a character in an American Standard Code for Information Interchange (ASCII) set, and the input Information is determined to be null (null) without adopting an 81 coding mode of UCS-2; if the first hexadecimal bit in the value obtained by performing AND operation on the Unicode of one character in the input information and 0x8000 is 1, the character does not support the 81 coding mode of UCS-2 and returns to be a null value; if the first hexadecimal bit in the value obtained by AND operation of the Unicode of the character and 0x8000 is 0, each character supports the 81 coding mode of UCS-2. In the method, whether the base addresses corresponding to all characters of the input information are the same or not needs to be determined, and if the base addresses corresponding to all characters of the input information are the same, the input information can be determined to support the 81 encoding mode of the UCS-2; if the input information contains characters with different base addresses, the input information can be determined not to support the 81 encoding mode of the UCS-2.
Aiming at the fact that the decimal number corresponding to each character of the input information is smaller than 128, each character is a character in an ASCII set, and a binary system corresponding to each character and 0xff are stored in an array after operation; if the decimal number corresponding to each character of the input information is larger than 128, performing an AND operation on one character in the input information, such as a binary number corresponding to the first character, and 0x7f80, and determining 2-9 bits in the result of the AND operation as base; and carrying out exclusive OR on binary numbers corresponding to another character in the input information and base, wherein the exclusive OR result is represented as tempAlphaId. If the tempAlphaId is larger than 128, determining that the base address of the other character is different from the base address of the character, and returning a null value when the input information does not support the 81 encoding mode of UCS-2; if the tempAlphaId is less than 128, the result of the AND operation of the tempAlphaId with 0x80 is stored in the result array. The base address of the input information is obtained by right shifting the base by 7 bits and performing an AND operation with 0 xff.
If the input information can support the 81 encoding mode of the UCS-2, an array is newly established, the length of the array is the length of an input character plus 3, a first byte is stored in 81, a second byte is stored in the length of the input character, a third base address is stored, and the following bytes are sequentially stored in the encoding of each character in the input information.
For example, if the unicode corresponding to one character in the input message is 0x45E8, the binary number corresponding to the one character is 0100010111101000, and the and operation result base of the binary number corresponding to the one character and 0x7f80 is 0100010110000000. And performing exclusive or on the binary system corresponding to the other characters and the base, and if the exclusive or result is greater than 128, determining that the 2-9 bits of the binary system corresponding to the other characters are different from 0x45E8, namely the base address is different, wherein the input information cannot support the 81 encoding mode of the UCS-2.
S307, if the input information supports the 81 coding mode of the UCS-2, determining a character length limit value corresponding to the 81 coding mode of the UCS-2, coding the current input information according to the 81 coding mode of the UCS-2, and determining the coded character length.
S308, judging whether the coded character length is larger than the character length limit value corresponding to the 81 coding mode of the UCS-2.
And S309, if the coded character length is larger than the character length limit value corresponding to the 81 coding mode of the UCS-2, sending prompt information to a user to instruct the user to stop inputting information.
If the coded word length is smaller than the word length limit corresponding to the 81 coding method of UCS-2, the process returns to the step S301.
S310, if the input information does not support the 81 encoding mode of the UCS-2, determining a character length limit value corresponding to the UTF-16 encoding mode, encoding the current input information according to the UTF-16 encoding mode, and determining the encoded character length.
S311, judging whether the coded character length is larger than the character length limit value corresponding to the UTF-16 coding mode.
And S312, if the coded character length is larger than the character length limit value corresponding to the UTF-16 coding mode, sending prompt information to a user to indicate the user to stop inputting information.
If the coded character length is smaller than the character length limit value corresponding to the UTF-16 coding method, the process returns to the step S301.
The processing method of the input information provided by the invention can send prompt information to the user when the character length of the current input information after being coded is larger than the character length limit value in the information input process, and instruct the user to stop inputting the information, but not prompt the user that the character length of the input information is over-limited in the storage process of the input information, so that the storage abnormity caused by overlong input information is avoided, and the usability of the mobile terminal for the input information is improved. In addition, the method also determines the coding mode supported by the current input information from a plurality of coding modes according to the descending order of the character length limit value corresponding to the coding mode, thereby improving the usability of the input information and increasing the information quantity of the input information.
The present invention further provides an input information processing apparatus, so as to execute the input information processing apparatus described in any one of fig. 1 to 3. Fig. 4 is a schematic structural diagram of a processing apparatus for inputting information according to the present invention. As shown in fig. 4, the processing device 400 for inputting information may include:
a first determining module 401, configured to determine a coding mode supported by the current input information.
A second determining module 402, configured to determine a character length limit value corresponding to the encoding method.
And an encoding module 403, configured to encode the current input information according to the encoding mode, and determine the length of the encoded character.
The judging module 404 is configured to judge whether the encoded character length is greater than the character length limit.
A prompt module 405, configured to send a prompt message to a user to instruct the user to stop inputting information if the character length of the current input information is greater than the character length limit.
Optionally, the first determining module 401 is specifically configured to determine, according to a preset coding mode arrangement order, a first coding mode supported by the current input information from multiple coding modes; the sequence of the encoding modes is the sequence of the character length limit values corresponding to the encoding modes from large to small.
Optionally, fig. 5 is a schematic structural diagram of another input information processing apparatus provided in the present invention. As shown in fig. 5, in the apparatus 400 for processing input information, the first determining module 401 may include:
the judging sub-unit 4011 is configured to judge whether the current input information supports a first coding scheme of the plurality of coding schemes.
The determining sub-unit 4012 is configured to determine, if the current input information supports a first coding scheme of the multiple coding schemes, that a first coding scheme supported by the current input information is the first coding scheme of the multiple coding schemes.
The determining sub-unit 4011 is further configured to, if the current input information does not support a first coding scheme in the multiple coding schemes, continue to determine whether the current input information supports a second coding scheme in the multiple coding schemes until the first coding scheme supported by the current input information is determined; the character length limit value corresponding to the first coding mode is larger than the character length limit value corresponding to the second coding mode.
Optionally, the multiple encoding modes include: 8-bit coding mode, UCS-2 coding mode 81 and UTF-16 coding mode.
The input information processing apparatus provided by the present invention can execute any one of the input information processing methods described in fig. 1 to fig. 3, and specific implementation processes and beneficial effects thereof can be referred to above, and are not described herein again.
The invention also provides a mobile terminal. Fig. 6 is a schematic structural diagram of a mobile terminal according to the present invention. As shown in fig. 6, the mobile terminal 600 may include: an input device 601, an output device 602, a processor 603, and a memory 604; the input device 601 and the output device 602 are each connected to a processor 603, and the processor 603 is further connected to a memory 604.
An input device 601 for receiving input information and transmitting the input information to the processor 603.
A memory 604 for storing program instructions.
A processor 603, configured to invoke the program instruction stored in the memory 604, to determine a coding mode supported by the input information, determine a character length limit value corresponding to the coding mode, encode the current input information according to the coding mode, and determine the coded character length; and judging whether the coded character length is larger than the character length limit value or not, if so, controlling the output equipment 602 to send prompt information to the user so as to instruct the user to stop inputting information.
Optionally, the processor 603 is specifically configured to determine, according to a preset coding mode arrangement order, a first coding mode supported by the current input information from a plurality of coding modes; the sequence of the encoding modes is the sequence of the character length limit values corresponding to the encoding modes from large to small.
Optionally, the processor 603 is specifically configured to determine whether the current input information supports a first encoding method of the multiple encoding methods; if so, determining that the first coding mode supported by the current input information is a first coding mode in the plurality of coding modes; if not, continuously judging whether the current input information supports a second coding mode in the plurality of coding modes until a first coding mode supported by the current input information is determined; the character length limit value corresponding to the first coding mode is larger than the character length limit value corresponding to the second coding mode.
Optionally, the multiple encoding modes include: 8-bit coding mode, UCS-2 coding mode 81 and UTF-16 coding mode.
The mobile terminal provided by the present invention can execute the method for processing the input information described in any one of fig. 1 to fig. 3, and the specific implementation process and the beneficial effects thereof are referred to above, and are not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A method for processing input information, comprising:
determining a coding mode supported by current input information;
determining a character length limit value corresponding to the coding mode;
encoding the current input information according to the encoding mode, and determining the length of the encoded character;
judging whether the coded character length is larger than the character length limit value or not, if so, sending prompt information to a user to indicate the user to stop inputting information;
the determining the coding mode supported by the current input information includes:
determining a first coding mode supported by the current input information from a plurality of coding modes according to a preset coding mode arrangement sequence; the arrangement sequence of the coding modes is the sequence of the character length limit values corresponding to the coding modes from large to small.
2. The method of claim 1, wherein the determining a first coding scheme supported by the current input information from a plurality of coding schemes according to a preset coding scheme ranking order comprises:
judging whether the current input information supports a first coding mode in the plurality of coding modes;
if so, determining that the first coding mode supported by the current input information is a first coding mode in the plurality of coding modes;
if not, continuously judging whether the current input information supports a second coding mode in the plurality of coding modes until a first coding mode supported by the current input information is determined; the character length limit value corresponding to the first coding mode is larger than the character length limit value corresponding to the second coding mode.
3. The method of claim 1 or 2, wherein the plurality of encoding modes comprise: 8-bit coding mode, 81 coding mode of 2-byte universal character set UCS-2 and 16-bit universal code conversion format UTF-16 coding mode.
4. A processing apparatus for inputting information, comprising:
the first determining module is used for determining the coding mode supported by the current input information;
the second determining module is used for determining the character length limit value corresponding to the coding mode;
the encoding module is used for encoding the current input information according to the encoding mode and determining the length of the encoded character;
a judging module for judging whether the coded character length is larger than the character length limit value,
the prompting module is used for sending prompting information to a user to indicate the user to stop inputting information if the character length of the current input information is larger than the character length limit value;
the first determining module is specifically configured to determine, according to a preset coding mode arrangement order, a first coding mode supported by the current input information from a plurality of coding modes; the arrangement sequence of the coding modes is the sequence of the character length limit values corresponding to the coding modes from large to small.
5. The apparatus of claim 4, wherein the first determining module comprises:
a judging subunit, configured to judge whether the current input information supports a first encoding mode of the multiple encoding modes;
a determining subunit, configured to determine, if the current input information supports a first coding scheme in the multiple coding schemes, that the first coding scheme supported by the current input information is the first coding scheme in the multiple coding schemes;
the determining subunit is further configured to, if the current input information does not support a first encoding mode of the multiple encoding modes, continue to determine whether the current input information supports a second encoding mode of the multiple encoding modes until a first encoding mode supported by the current input information is determined; the character length limit value corresponding to the first coding mode is larger than the character length limit value corresponding to the second coding mode.
6. The apparatus of claim 5, wherein the plurality of encoding modes comprise: 8-bit coding mode, 81 coding mode of 2-byte universal character set UCS-2 and 16-bit universal code conversion format UTF-16 coding mode.
7. A mobile terminal, comprising: an input device, an output device, a processor, and a memory; the input device and the output device are respectively connected with the processor, and the processor is also connected with the memory;
the input device is used for receiving input information and transmitting the input information to the processor;
the memory to store program instructions;
the processor is configured to call the program instruction stored in the memory to determine a coding mode supported by the input information, determine a character length limit value corresponding to the coding mode, encode the current input information according to the coding mode, and determine the coded character length; judging whether the coded character length is larger than the character length limit value or not, if so, controlling the output equipment to send prompt information to a user so as to instruct the user to stop inputting information;
the processor is further configured to determine a first coding mode supported by the current input information from a plurality of coding modes according to a preset coding mode arrangement sequence; the arrangement sequence of the coding modes is the sequence of the character length limit values corresponding to the coding modes from large to small.
CN201610951071.9A 2016-10-27 2016-10-27 Input information processing method and device and mobile terminal Active CN106502971B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610951071.9A CN106502971B (en) 2016-10-27 2016-10-27 Input information processing method and device and mobile terminal
CN202010261393.7A CN111507068B (en) 2016-10-27 2016-10-27 Input information processing method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610951071.9A CN106502971B (en) 2016-10-27 2016-10-27 Input information processing method and device and mobile terminal

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202010261393.7A Division CN111507068B (en) 2016-10-27 2016-10-27 Input information processing method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106502971A CN106502971A (en) 2017-03-15
CN106502971B true CN106502971B (en) 2020-04-21

Family

ID=58322195

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610951071.9A Active CN106502971B (en) 2016-10-27 2016-10-27 Input information processing method and device and mobile terminal
CN202010261393.7A Active CN111507068B (en) 2016-10-27 2016-10-27 Input information processing method and device and mobile terminal

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202010261393.7A Active CN111507068B (en) 2016-10-27 2016-10-27 Input information processing method and device and mobile terminal

Country Status (1)

Country Link
CN (2) CN106502971B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110536017B (en) * 2019-09-03 2021-05-11 中国联合网络通信集团有限公司 Message transmission control method and message transmission control device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193709A (en) * 2010-03-01 2011-09-21 腾讯科技(深圳)有限公司 Character input method and device

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6829620B2 (en) * 2001-09-20 2004-12-07 International Business Machines Corporation Table-level unicode handling in a database engine
JP4101034B2 (en) * 2002-11-14 2008-06-11 松下電器産業株式会社 Encoding apparatus and method
CN100550653C (en) * 2005-12-14 2009-10-14 北京北大方正电子有限公司 A kind of Code And Decode method of variable length structural information
CN101047733B (en) * 2006-06-16 2010-09-29 华为技术有限公司 Short message processing method and device
US20090070121A1 (en) * 2007-09-11 2009-03-12 Jean-Baptiste Leonelli System, Method And Graphical User Interface For Workflow Generation, Deployment And/Or Execution
CN101345952B (en) * 2008-09-03 2012-04-04 华为终端有限公司 Data storing and reading method, device and system for client identification card
CN102843470B (en) * 2012-08-16 2015-04-22 广东步步高电子工业有限公司 Optimization editing information communication system and method thereof
CN104615585B (en) * 2014-01-06 2017-07-21 腾讯科技(深圳)有限公司 Handle the method and device of text message
CN104038638A (en) * 2014-06-25 2014-09-10 青岛海信移动通信技术股份有限公司 Short message group sending method and terminal equipment
CN105472107A (en) * 2014-08-26 2016-04-06 中兴通讯股份有限公司 Terminal information processing method and device
JP6397343B2 (en) * 2015-01-28 2018-09-26 株式会社日立社会情報サービス Information processing apparatus and information processing method
CN105159533A (en) * 2015-08-31 2015-12-16 努比亚技术有限公司 Mobile terminal and automatic verification code input method thereof
CN105208291B (en) * 2015-11-04 2018-07-20 黄亚桥 Slr camera remote controler with fast positioning function

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193709A (en) * 2010-03-01 2011-09-21 腾讯科技(深圳)有限公司 Character input method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Android学习之自定义TextWatcher来监听文本最大输入字数;余小涛;《Android学习之自定义TextWatcher来监听文本最大输入字数 - CSDN博客(https://blog.csdn.net/qq_23940659/article/details/50952370)》;20160322;第1-2页 *
深入分析Java中的中文编码问题;key_zhaojd;《深入分析 Java 中的中文编码问题 - CSDN博客(https://blog.csdn.net/zjdwhd/article/details/51792015)》;20160630;第1-2页,第8页 *

Also Published As

Publication number Publication date
CN111507068A (en) 2020-08-07
CN106502971A (en) 2017-03-15
CN111507068B (en) 2023-08-25

Similar Documents

Publication Publication Date Title
US20060142997A1 (en) Predictive text entry and data compression method for a mobile communication terminal
JP2006510989A5 (en)
CN102307258A (en) Communication method between primary device and accessory device, device thereof and system thereof
CN101834943A (en) Method and device for switching working mode of mobile terminal
CN103164240A (en) Firmware upgrade function for deskphone electronic protocol converter
CN106896933B (en) method and device for converting voice input into text input and voice input equipment
CN106502971B (en) Input information processing method and device and mobile terminal
CN105141755A (en) Information reply method, smart watch, terminal equipment and system
CN111368508B (en) Data processing method, device, equipment and medium
CN112888024A (en) Data processing method, data processing device, storage medium and electronic equipment
CN107708183B (en) Decoding algorithm determination method, device, terminal and storage medium
KR20020013108A (en) Method for transmitting graphic message in mobile wireless terminal
CN101500028A (en) Communication terminal using read-write mode and method for implementing read-write mode communication
CN114070470A (en) Encoding and decoding method and device
CN113971876B (en) Terminal communication method, terminal device, terminal, and storage medium
CN112530435B (en) Data transmission method, device and system, readable storage medium and electronic equipment
US8090362B2 (en) Mobile electronic device and method for displaying characters on a bluetooth device
CN113157375A (en) Content display method, device, equipment, system and storage medium
CN111065094B (en) Address book transmission method and device, storage medium and electronic equipment
WO2017161500A1 (en) Method for setting incoming call ringtone, electronic device, and storage medium
KR20080013632A (en) Mobile terminal and method for transmitting message thereof
KR100485472B1 (en) Method for providing wireless multi-language internet and mobile communication phone implementing the same
CN117112491A (en) Data processing method, device, electronic equipment and storage medium
CN104869205A (en) Data processing method, data processing device and IP telephone terminal
CN114594982A (en) Application determination method, device, terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder