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.

Inactive Publication Date: 2010-02-24
XIAMEN STELCOM INFORMATION & TECH
View PDF2 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The technical problem mainly solved by the present invention is to provide an embedded terminal and its UTF-8, GB2312 code conversion method, which can solve the problem of embedded mo

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Embedded type terminal and UTF-8 and GB2312 code conversion method thereof
  • Embedded type terminal and UTF-8 and GB2312 code conversion method thereof
  • Embedded type terminal and UTF-8 and GB2312 code conversion method thereof

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an embedded type terminal and a UTF-8 and GB2312 code conversion method thereof. The UTF-8 and GB2312 code conversion method based on the embedded type movable terminal comprises the following steps: receiving a request which comes from an application program and converts a GB2312 code into a UTF-8 code; reading a GB2312 code character in the embedded type terminal according to the request; converting the read GB 2312 code character into a Unicode code character; directly converting the converted Unicode code character into a UTF-8 code character; and returning a resultof the converted UTF-8 code character to the application program. Under the environment without an operating system window or linux and the condition without other usable APIs, the UTF-8 and GB2312 code conversion method can solve the problem of character treatment of the communication between the embedded type movable terminal and a background server.

Description

Technical field [0001] The invention relates to the field of electronic technology, in particular to an embedded mobile terminal and a code conversion method based on the embedded mobile terminal. Background technique [0002] UTF-8 encoding is a multi-byte encoding used to solve international characters. It uses one byte for English and three bytes for Chinese. For more English characters, use UTF-8 to save space. UTF-8 encoded text can be displayed on various browsers supporting UTF-8 character set in various countries. It is currently the main encoding method used on the server side. [0003] In addition, the GB2312 code is a simplified Chinese character encoding scheme announced by my country, also known as the national standard code. The national standard code encodes 6763 Chinese character sets, covering most of the Chinese characters in use. At present, these two codes are widely used in communication systems. [0004] GB2312 is a subset of GBK, and GBK is a subset of GB18...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/22
Inventor 林忠侣曾宗云
Owner XIAMEN STELCOM INFORMATION & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products