Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Character coding and decoding method and device

A character encoding and character technology, applied in the field of character encoding and decoding methods and devices, can solve problems such as unfavorable transmission, unfavorable transmission, long code stream, etc., and achieve the effect of facilitating transmission

Inactive Publication Date: 2016-03-09
BEIJING QIHOO TECH CO LTD +1
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

UNICODE encoding, both Chinese and English characters occupy 2 bytes, when the UNICODE encoding has many English characters, the code stream is too long, which is not conducive to transmission
In UTF-8 encoding, commonly used English characters occupy 1 byte length, and Chinese characters occupy 3 bytes length. When UTF-8 encoding has more Chinese characters and fewer English characters, the length of the code stream is too long, which is not conducive to transmission

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
  • Character coding and decoding method and device
  • Character coding and decoding method and device
  • Character coding and decoding method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0041] The embodiment of the present invention provides a character encoding method, such as figure 1 As shown, the method includes:

[0042] 101. During data transmission, acquire characters to be encoded.

[0043] The character to be encoded is an English character or a non-English character.

[0044] 102. Encode the character to be encoded to obtain a corresponding encoded character in a hexadecimal string, where the hexadecim...

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 a character coding and decoding method and device, and relates to the field of data transmission. During character coding, the method and device can obtain a relatively proper code stream so as to facilitate the transmission no matter which number of English characters or Chinese characters is larger. The main coding scheme of the invention is that the method carries out the processing of codes according to the size of a cod value of a coded character, enables high bits of codes to be removed when the code value is less than or equal to 127 and maintains the low bits; the method keeps original codes and groups the coded character when the code value of the coded character is greater than 127, and adds a length code. The main decoding scheme of the invention comprises the steps: determining whether to-be-decoded characters are length coding characters or not; sequentially reading two to-be-decoded characters of the to-be-decoded characters are not the length coding characters, and jointing the to-be-decoded characters as an ASCII character; enabling the corresponding number of length coding characters to be jointed as a Unicode character, and decoding the jointed code. The method and device are mainly used in a transmission process of end-to-end characters.

Description

technical field [0001] The invention relates to the field of data transmission, in particular to a character code decoding method and device. Background technique [0002] During end-to-end transmission, data must be encoded in some form before it can be sent. Currently commonly used encodings include Unicode (Unicode), Unicode variable-length character encoding (8-bitUnicodeTransformationFormat, UTF-8), and the like. Among them, Unicode is a character encoding used on computers. It was created to solve the limitations of traditional character encoding schemes. It sets a unified and unique binary encoding for each character in each language to meet Requirements for text conversion and processing across languages ​​and platforms. Research and development began in 1990 and was officially announced in 1994; UTF-8 is a variable-length character encoding for Unicode, also known as Universal Code. Created in 1992 by Ken Thompson. It has now been standardized as RFC3629. UTF-8...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L1/00G06F17/22
Inventor 唐炜
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products