Embedded type terminal and UTF-8 and GB2312 code conversion method thereof
A technology of encoding conversion and UTF-8, which is applied in the electronic field and can solve the problem that the application program cannot process characters.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] Refer to figure 1 The first embodiment of the method for converting GB2312 encoding into UTF-8 encoding based on the embedded mobile terminal of the present invention mainly includes:
[0025] Step 101: Receive a request from an application program to convert GB2312 encoding to UTF-8 encoding, such as receiving a request for a communication program between a mobile terminal and a background server;
[0026] Step 102: Read GB2312 encoded characters in the embedded mobile terminal according to the request;
[0027] Step 103: Convert the read GB2312 encoded characters into unicode encoded characters;
[0028] Step 104: directly convert the converted unicode encoded characters into UTF-8 encoded characters;
[0029] Step 105: Return the result of the conversion to the UTF-8 encoded character to the application program.
[0030] Different from the fact that the embedded mobile terminal in the prior art has limited storage space, no operating system and other APIs are available, it is d...
Embodiment 2
[0078] Refer to Image 6 According to the present invention, the second embodiment of an embedded mobile terminal is also provided, including:
[0079] The request receiving unit is used to receive a request from the application program to convert UTF-8 encoding to GB2312 encoding;
[0080] A character reading unit, configured to read UTF-8 encoded characters in the embedded mobile terminal according to the request;
[0081] The third conversion unit is used to directly convert the read UTF-8 encoded characters into unicode encoded characters;
[0082] The fourth conversion unit is used to convert the converted unicode encoded characters into GB2312 encoded characters;
[0083] The result returning unit is used to return the result of the conversion to the GB2312 coded character to the application program.
[0084] Above, the meaning of the result of returning coded characters to the application program may be directly returning the final coded characters after conversion to the applica...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com