CN1816170A - Code-conversion method for shortmessage receiving and transmitting and network apparatus used thereof - Google Patents

Code-conversion method for shortmessage receiving and transmitting and network apparatus used thereof Download PDF

Info

Publication number
CN1816170A
CN1816170A CN200510115643.1A CN200510115643A CN1816170A CN 1816170 A CN1816170 A CN 1816170A CN 200510115643 A CN200510115643 A CN 200510115643A CN 1816170 A CN1816170 A CN 1816170A
Authority
CN
China
Prior art keywords
character
ucs
coding
codings
note
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.)
Granted
Application number
CN200510115643.1A
Other languages
Chinese (zh)
Other versions
CN100425081C (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou Huawei 3Com 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 Hangzhou Huawei 3Com Technology Co Ltd filed Critical Hangzhou Huawei 3Com Technology Co Ltd
Priority to CNB2005101156431A priority Critical patent/CN100425081C/en
Publication of CN1816170A publication Critical patent/CN1816170A/en
Application granted granted Critical
Publication of CN100425081C publication Critical patent/CN100425081C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention includes steps: appointing adoption of UTF coding for carrying out transmission for input/output characters at input end and display end of short message; building mapping relation needed by conversion between character codes; based on built mapping relation to carry out conversion between UTF codes and 7 bit codes or UCS codes. The invention also discloses network devices of possessing function of sending and receiving short message. Holding and maintaining conversion relation for two kinds of codes, the invention can support languages for each country. Features are: small storage space needed, saving fabricating cost and cost for late maintenance.

Description

The code conversion method of short message receiving-transmitting and the network equipment of application thereof
Technical field
The present invention relates to mobile communication, network service and character code technology, relate in particular to the code conversion method of short message receiving-transmitting and use the network equipment of this method.
Background technology
Continuous growth along with development of internet technology and customer service demand, routing device is by GPRS (General Packet Radio Service, GPRS) or 3G (3rd GenerationMobile Communications System, 3-G (Generation Three mobile communication system)) data card inserts wide area network will become widespread usage, and the user can be linked among the internet (the Internet) by this class routing device.
A critical function of mobile communication is a short message receiving-transmitting.After routing device is linked into GPRS or 3G mobile communications network, also had function of receiving and sending short message.After the user uses web (World Wide Web (WWW)) browser to be connected on the routing device, note is sent on the routing device and from the routing device short message reading, and and the short message receiving-transmitting between the mobile phone finish by routing device.The transmitting-receiving note will become the new function that routing device offers the user, as shown in Figure 1.
Note has two kinds of coded systems, Default Alphabet (default character set) and UCS (UniversalCharacter Set, universal character set) 2.Wherein, Default Alphabet adopts 7 and represents a character, therefore also be referred to as 7 codings, be mainly used in ASCII (America Standard Code forInformation Interchange, ASCII), PCCP437 (PC-8 Code Page437,8 code pages or leaves 437 of computer), PCDN (PC-8Danish/Norwegian, 8 codings of computer Danish/Norwegian), ISO (International Organization for Standardization, International Standards Organization) coding of character such as 8859-1, its code table adopts GSM (Global System forMobile communications, global system for mobile communications) 03.38 agreement.UCS2 is 16 Unicode (Universal Multiple-Octet Coded Character Set, general multibyte coded character set) codings, can support the character that each is national.The country of Romance is general to adopt 7 codings to receive and dispatch note, sends English and also use 7 codings on the mobile phone of supporting Chinese short message; And the literal in East Asia then adopts the UCS2 coding as Chinese, Japanese, Korean etc.
The note that the user is sent to routing device by the web browser then adopts the coded system of user interface usually, and for example, Chinese user uses simplified form of Chinese Character coding GB2312 to import and Chinese display at the web page; The Japanese user has used Japanese coding Shift-JIS to import and has shown Japanese at the web page; The user of the Western European countries has used West Europe ISO to encode to import and has shown the literal that it is national at the web interface.
Thereby in the prior art, when the note of having edited as the user arrives routing device, routing device will know at first which kind of interface coded system the user adopts, and is UCS2 coding or 7 codings according to the code table of this coded system with corresponding characters collection character conversion, sends to mobile phone again; Equally, when the user from routing device during short message reading, routing device need be with UCS2 or 7 codings that code conversion is a UI Preferences of SMS, promptly the code table according to the user interface coding is converted to corresponding characters collection character.In above-mentioned two kinds of transfer processes, all need to use the code table of each speech like sound, and a kind of language of every support, just need on routing device, increase the code table of this language.And adopt Flash (flash memory) to store data on the routing device, the Flash space that increase various countries language code table need take will greatly increase manufacturing cost.
Another kind of method of the prior art is to increase the code conversion module on routing device, be with a kind of ISN with the various code conversion of user interface, encode by this ISN and UCS2 again or 7 codings between change.Like this, a kind of language of supporting of every increase just needs to revise the code of a modular converter, makes that the maintenance of routing device is very inconvenient.
Summary of the invention
The technical problem to be solved in the present invention is that existing code conversion method need be stored the code table of every kind of language or need be every kind of transcode that language compilation is different.
Among the present invention, the code conversion method that note sends may further comprise the steps:
Specify the note input with input character with universal character set transformat UTF coding transmission;
The input character that receives is mapped as universal character set UCS coding by the UTF coding;
Judge the character that can not adopt 7 codings that whether comprises regulation in the input character, if then send with the UCS coding; If not, input character being converted to 7 codings sends.
Preferably, described method also comprises:
The UCS that sets up the special UCS character of regulation is encoded to the mapping relations of 7 codings;
Set up the mapping relations of UCS code value to 7 coding of the special ASCII ascii character of stipulating;
The character that can not adopt 7 codings of described regulation is: other characters in all characters of regulation except that special UCS character and ascii character.
Described UCS code conversion with input character is that 7 codings are specially:
If the UCS of input character is encoded to the UCS coding of special UCS character, be converted into 7 corresponding codings according to the mapping relations of being set up;
If the UCS code value of input character is the UCS code value of special ascii character, be converted into 7 corresponding codings according to the mapping relations of being set up;
Otherwise minimum 7 of input character UCS coding is its 7 codings.
Preferably, described method also comprised before input character is mapped as the UCS coding by the UTF coding:
When input character is code value less than 128 ascii character, wherein special ascii character is converted into 7 corresponding codings according to the mapping relations of the special ascii character of being set up, the character beyond the special ascii character is got its minimum 7 be its 7 codings.
Preferably, the mapping relations of UCS code value to 7 coding of described special ascii character comprise the mapping relations of UCS code value to 17 codings of the special ascii character of 1 regulation, and the mapping relations of the UCS code value to 2 of the special ascii character of 1 regulation 7 codings;
Described special ascii character comprises the ISO 8859-1 of International Standards Organization character, 8 bit machine code page or leaf 437PCCP437 or 8 bit machines coding Danish/Norwegian PCDN.
Preferably, described method also comprises before the note that sends the UCS2 coding: if the order of note receiving terminal processing encoded byte is different with transmitting terminal, then byte order is adjusted into the processing sequence of receiving terminal.
Among the present invention, the code conversion method that note receives may further comprise the steps:
Specify the character of the display end reception of note with the UTF coding transmission;
If the note character that receives is 7 codings, then be converted into the UCS coding;
The reception character conversion of UCS coding is the UTF coding and transfers to the display end demonstration.
Preferably, described method also comprises:
Set up 7 mapping relations that are encoded to the UCS coding of the special UCS character of regulation;
The 7 bit code values of setting up the special ascii character of regulation arrive the mapping relations of UCS coding;
Described 7 code conversion that will receive character are that the UCS coding is specially:
If receive 77 codings that are encoded to special UCS character of character, be converted into corresponding UCS coding according to the mapping relations of being set up;
If receive 77 codings that are encoded to special ascii character of character, be converted into corresponding UCS code value according to the mapping relations of being set up, and be converted to the UCS coding in the mode of high position benefit 0;
Otherwise, 7 codings receiving character are converted to the UCS coding in a high position 0 the mode of mending.
Preferably, the mapping relations that 7 of described special ascii character are encoded to the UCS code value comprise 17 mapping relations that are encoded to the UCS code value of the special ascii character of 1 regulation, and 27 mapping relations that are encoded to the UCS code value of the special ascii character of 1 regulation.
Preferably, before the reception character conversion with the UCS coding is the UTF coding,, then byte order is adjusted into the processing sequence of receiving terminal if the order of note transmitting terminal processing encoded byte is different with receiving terminal.
The present invention also provides a kind of network equipment with transmitting-receiving SMS, it is characterized in that, and comprise user's input-output unit, send transcoder unit, received code converting unit and ambulatory transceiver unit, wherein:
User's input-output unit receives the note input of user by the World Wide Web (WWW) Web browser of appointment Unicode coding, and output is sent to the browser display of specifying the Unicode coding;
Sending transcoder unit is used for the UTF-8 code conversion of input is 7 codings or UCS2 coding and transfers to the transmission of ambulatory transceiver unit;
7 coding notes or UCS2 coding note that the received code converting unit is used for the ambulatory transceiver unit is received are converted to the UTF-2 coding and transfer to user's input-output unit;
The ambulatory transceiver unit is used for receiving and dispatching note.
The present invention specifies the transmission input of note or receives UTF (the UCS Transformation Format of display end can support various countries' language, the UCS transformat) coding carries out the transmission of input and output character, by the conversion realization short message receiving-transmitting between UTF coding and 7 codings or the UCS coding, owing to have the mapping relations that available algorithm realizes between UCS coding and the UTF coding, thereby the present invention only need preserve and safeguard that the transformational relation of two kinds of codings of a limited number of spcial characters can realize the support to various countries' language, required memory space is little, has saved manufacturing cost and later maintenance cost.
Description of drawings
Fig. 1 provides the schematic diagram of short message service to the user for routing device;
Fig. 2 is the code conversion method flow chart that note sends in the preferred embodiment of the present invention;
Fig. 3 is the code conversion method flow chart that note receives in the preferred embodiment of the present invention;
Fig. 4 is the structure chart with network equipment of function of receiving and sending short message of the present invention.
Embodiment
As previously mentioned, Unicode is a kind of character coding method by international organizational design, is the encoding scheme that can hold all spoken and written languages of the whole world.Current Unicode has two kinds of coded formats, UCS2 and UCS4, and wherein UCS2 is with two byte codes, and UCS4 encodes with 4 bytes.UCS has stipulated how to use the various literal of coded representation of a plurality of bytes, and what kind of form to transmit these codings with, and by UTF coding criterion regulation, common UTF coding criterion comprises UTF-8, UTF-7, UTF-16, and that the most commonly used is UTF-8.
UTF-8 adopts the sequence of 1 to 6 byte (1 byte equals 8) to encode.Only use in the sequence of a byte, the high position of byte is 0, other 7 codings that are used for character value.In the sequence of the individual byte of n (n>1), highest order is 1 in 8 of initial byte, and then one is 0, and the position of this byte remainder is the position that comprises the character value that is encoded.The highest order of then removing all octets of last byte is 1, and then next bit is 0, and remaining 6 of each bytes are the positions of character value of being encoded.It is individual 1 that last byte high position comprises x (x>1), and then the next one is 0, and remaining position comprises the position of the character that is encoded.Last byte high position comprises x 1 expression, and it is the x byte that this character adopts the UFT-8 code length.
The UTF coding is the transformat of UCS, the algorithm standard that in its agreement, has UTF coding and UCS coding to change mutually, for example in RFC (Request For Comments) 2279, the algorithm standard that the UTF-8 coding is mapped as the UCS2 coding has been described, therefore to the mapping method between UTF coding and the UCS coding, repeat no more among the present invention.
In the UCS character, the character that can adopt 7 codings to represent comprises ascii character and some special UCS characters.These special UCS characters are not ascii characters, represent but can be mapped to corresponding ascii character.The code value of ascii character is less than 256 in the UCS coding, to most of code values less than 128 ascii character, the code value of its UCS coding, UTF coding and 7 codings is identical, but also have a small amount of code value to belong to special ascii character less than 128 ascii character, its 7 codings need be mapped as other code value; Code value also belongs to special ascii character greater than 127 ascii character, because its 7 codings also need to be mapped as other code value.
17 coding of the usefulness that special ascii character has represent that two 7 codings of the usefulness that has are represented.The UCS of special ascii character is encoded in the mapping relations of 7 codings, has both comprised that the UCS of 1 character was encoded to the mapping of 17 coding, comprises that also the UCS of 1 character is encoded to the mapping of 27 codings.Because special UCS character is mapped on the ascii character, therefore special UCS character also can be represented with 1 or 27 codings.
These special ascii characters have comprised the character of some Romance countries, as the character in PCCP437, PCDN, the ISO 8859-1 character set.These special UCS characters and special ascii character are by Default Alphabet agreement and 3GPP TS 27.005V3.2.0 (3rd Generation PartnershipProject Technical Specification Group Terminals 27.005 Version) agreement regulation.
The note of 7 codings is different with the shared memory capacity of note of UCS coding.For example, can hold the mobile phone of 160 7 code characters to a note, if adopt the UCS2 coding then a note can only hold 70 characters.Because the memory capacity of mobile phone is limited, therefore preferably adopt 7 codings to send and receive as far as possible to the note of forming by the character that can adopt 7 codings.
UTF coding also is used for the character that transmits on the internet, thereby general internet, applications is all supported the UTF coding.The present invention specifies in the input and the display end of note, as browser and customer end adopted UTF-8 coding transmission, to realize multi-lingual support.
Figure 2 shows that the flow process of the code conversion method that note sends in the preferred embodiment of the present invention.At step S201, the UCS that sets up special UCS character is encoded to the mapping relations of 7 codings of 8 bits.
7 codings carry out short message receiving-transmitting with the form of 7 codings of 7 bits.7 codings of 8 bits are that 7 codings are deposited with the length of 1 byte, and highest order is 0, and low 7 are 7 codings of 7 bits.
At step S202, set up the mapping relations of the UCS code value of special ascii character to 7 codings of 8 bits.With identical among the step S201, the highest order of 7 codings of these 8 bits is 0, low 77 codings of 7 bits that equal special ascii character correspondence.The mapping relations of setting up in this step comprise the mapping of 1 special ascii character to 1,7 codings of 8 bits and the mapping of special ascii character to 27 codings of 8 bits; Simultaneously, the mapping relations of setting up in this step comprise the mapping of the special ascii character between the special ascii character and 128 to 255 between the code value 0 to 127.
Because the code value of ASCII character is less than 256 in the UCS coding, and other high bytes are 0 value, so sets up the mapping relations of UCS code value to 7 coding in this step, can further saves and preserve the shared memory space of mapping relations.
Step S201 and step S202 can finish when system initialization.
At step S203, specify the note input with UTF coding transmission input character.If use the web browser as the note input, then only need to specify browser page to use the Unicode coding to get final product, this moment, browser page adopted the UTF coding when the information of transmission.
At step S204, judge according to the UTF of input character coding whether input character is code value less than 128 ascii character, if, execution in step S205, otherwise execution in step S206;
If the UTF-8 of input character coding all is a code value less than 128 ascii character, because these ascii characters have identical numerical value in UCS coding and UTF encode, and its UTF encodes with 1 byte representation, and these are conventional characters in English country, so judge separately, available quickening system handles includes only the speed of code value less than the note of 128 ascii character.
At step S205, be 7 codings of 8 bits with code value less than the UTF code conversion of 128 ascii character, change step S209.
Code value may comprise special ascii character and other ascii characters less than 128 ascii character.One by one the UTF code value of input character and UCS code value in the mapping relations of setting up in step S202 are compared, if it is identical, then this character is special ascii character, with 7 codings of 8 bits of this UCS code value correspondence 7 codings of 8 bits as this character, if in these mapping relations, do not have and the identical UCS code value of this character UTF code value, then this character is other ascii characters, the UTF coding of this character is just in time identical with 7 codings of its 8 bit, then directly is encoded to 7 codings of its 8 bit with its UTF.
Among step S204 and the step S205 input character is code value and has done individual processing less than the situation of 128 ascii character, this two step also can omit, direct execution in step S206, after code value is the UCS coding less than 128 ascii character by the UTF code conversion, in step S208, be converted into 7 codings of 8 bits.
At step S206, the UTF coding is mapped as the UCS coding.
At step S207, judge that whether comprise in the input character can not be with the character of 7 coded representations, if, execution in step S210; Otherwise execution in step S208.
As previously mentioned, can be special UCS character and ascii characters with the character of 7 coded representations by the agreement regulation, then can not promptly be in all characters of agreement regulation with the character of 7 coded representations, other characters except that special UCS character and ascii character.This step can all be that special UCS character or ascii character finish whether input character is comprised can not be with the judgement of the character of 7 coded representations by judging whether each input character.
Judge whether input character is that special UCS character carries out with the mapping relations of 7 codings of 8 bits by the UCS coding that adopts the special UCS character of setting up in step S201.If all input characters all are special UCS characters, perhaps part is that special UCS character and other are ascii character, perhaps all is ascii character, and then input character can be converted to 7 codings.
At step S208, be 7 codings of 8 bits with the UCS code conversion of input character.May comprise special UCS character, special ascii character and other ascii characters in the input character.
If the UCS of input character is encoded to the UCS coding of special UCS character, be converted into corresponding 7 codings of 8 bits according to the mapping relations of in step S201, setting up;
If the UCS code value of input character is the UCS code value of special ascii character, be converted into corresponding 7 codings of 8 bits according to the mapping relations of in step S202, setting up;
Otherwise input character is other ascii characters, and minimum 7 of input character UCS coding is its 7 codings, and minimum 8 of its UCS coding then is 7 codings of its 8 bit.
To special UCS character and special ascii character, be converted into 1 or 7 codings of 28 bits in this step.
At step S209, be 0 according to GSM 03.38 agreement with highest order, other low levels are that 7 encoding compression of 8 bits of 7 codings are the form that 7 bit-order are arranged, and promptly arrange with 7 codings of 7 bits.Afterwards, execution in step S211 sends the note of 7 codings by mobile communications network.
At step S210, this moment, input character must adopt the UCS coding.Because UCS is encoded to multibyte coding, and different processors may adopt different sequential processes multibyte codings, the upper byte that has preceding low byte after, what have is opposite.When the byte processing sequence of receiving terminal and transmitting terminal not simultaneously, carry out this step, byte order is adjusted into the processing sequence of receiving terminal.
At step S211, note is sent by mobile communications network.
Figure 3 shows that the code conversion method flow process that note receives in the preferred embodiment of the present invention.At step S310,7 of 8 bits setting up special UCS character are encoded to the mapping relations of UCS coding.
The mapping that 7 of 8 bits of 1 special UCS character are encoded to the UCS coding both may be that 187 of bit is encoded to the mapping that UCS encodes, and also may be that 287 of bits are encoded to the mapping that UCS encodes.
At step S320, set up 7 mapping relations that are encoded to the UCS code value of 8 bits of special ascii character.With identical among the step S310, the mapping that 7 of 8 bits of 1 special ascii character are encoded to the UCS code value both may be that 187 of bit is encoded to the mapping that UCS encodes, and also may be that 287 of bits are encoded to the mapping that UCS encodes.
With identical in the note transmission flow, because the code value of ASCII character is less than 256 in the UCS coding, and other high bytes are 0 value, so set up the mapping relations of UCS code value to 7 coding in this step.
The mapping of setting up in this step comprises 7 codings of 8 bits and is mapped to ASCII character between the ASCII character and 128 to 255 between the code value 0 to 127.
It is opposite that note receives the mapping relations of setting up in the mapping relations set up in the flow process and the transmission flow.
Step S310 and step S320 can finish when system initialization.
At step S330, specify the note display end to receive the note character with the UTF coding.When the note display end was the web browser, can be about to the UTF code conversion certainly was Unicode coding, and shows note with the Unicode coding in the page.
At step S340, judge to receive whether character is 7 codings, if, execution in step S360; If not, execution in step S350.Judge adopt among coded system the present invention of note with prior art in identical method, repeat no more.
At step S350, to adopting the reception character of UCS coding,, then byte order is adjusted into the processing sequence of receiving terminal, with correct reception and demonstration note if the multibyte processing sequence of transmitting terminal is different with receiving terminal.Change step S380.
At step S360,7 coding notes of reception are 7 codings of 7 bits, promptly arrange with 7 bit-order.7 codings of 7 bits are converted to form storage with byte according to the decode procedure of GSM 03.38 consensus standard, and conversion regime is one group of per 7 bit, adds 0 in highest order and forms 7 codings of 8 bits.Change step S370.
At step S370, be the UCS coding with 7 code conversion of 8 bits of special UCS character, special ascii character, other ascii characters.
If 7 of 8 bits that receive character are encoded to 7 codings of 8 bits of special UCS character, be converted into corresponding UCS coding according to the mapping relations of in step S310, setting up;
If 7 of 8 bits that receive character are encoded to 7 codings of 8 bits of special ascii character, are converted into corresponding UCS code value according to the mapping relations of in step S320, setting up, and are converted to the UCS coding in the mode of high position benefit 0;
Otherwise receiving character be other ascii characters, 7 codings of 8 bits of receiving character is converted to UCS in a high position 0 the mode of mending encodes.
In this step, may be that the UCS that 7 code conversion of 18 bit are 1 special UCS character or special ascii character is encoded, also may be the UCS that 7 code conversion of 28 bits are 1 special UCS character or special ascii character is encoded.
At step S380, be the UTF coding with the UCS code conversion that receives character and be transferred to display end and show.
In above preferred embodiment of the present invention, when note sends and the code conversion method when receiving only need concern and get final product in the UCS of special UCS character of storage and maintenance and special ascii character on the equipment that carries out short message receiving-transmitting coding and mutual mapping between 7 codings, and above-mentioned mapping relations are safeguarded very easy.
In the code conversion flow process that said short message sends and receives, 7 codings are to store with the form of 7 codings of 8 bits, and this mainly is in order to handle conveniently.In fact, 7 codings also can be directly with 7 coding form storages of 7 bits, at this moment, in the code conversion flow process that note sends, can omit step S209, in the code conversion flow process that note receives, can omit step S360, no longer include 7 codings of 8 bits in the flow process certainly, and unification becomes 7 codings.
Because special UCS character carries out 7 codings by being mapped on the ascii character, when therefore in the note transmission flow, setting up mapping relations, step S201 can be changed into and set up the mapping relations of special UCS character to ascii character.After this, when in step S208, special UCS character being converted into 7 codings, then should to the mapping relations of ascii character special UCS character be mapped as the ascii character of correspondence earlier according to special UCS character, judge according to the mapping relations of setting up among the step S202 whether this ascii character is special ascii character again, it further is converted into 7 codings.Other parts in the transmission flow need not revised.
Equally, when in note reception flow process, setting up mapping relations, step S310 can be changed into and set up the mapping relations of special ascii character to special UCS character.After this, in step S370, be special ascii character according to the mapping relations of setting up among the step S320 with 7 code conversion earlier, judge again whether to have in these special ascii characters to exist, if having then the UCS that will this special ascii character be converted to this special UCS character encodes to the mapping relations of special UCS character.Other parts that receive in the flow process need not revised.
Implement the present invention to preserve special UCS character to the mode of ascii character mapping, can be conveniently to the maintenance of mapping relations.
Fig. 4 realizes the structure chart of the network equipment of function of receiving and sending short message for note code conversion method among application the present invention.User's input-output unit 410 is connected with transmission transcoder unit 420, received code converting unit 430 respectively, and ambulatory transceiver unit 440 also is connected with transmission transcoder unit 420, received code converting unit 430 respectively.
The user with short message content input to be sent, connects by wired or wireless network on the web browser of specifying employing Unicode coding, uses UTF-8 to encode short message content is transferred to user's input-output unit 410.Send the UTF-8 coding note input that coding unit 420 receives 410 transmission of user's input-output unit, be converted into 7 codings or UCS2 coding.Sending coding unit 420 can adopt the note transmission code conversion method among the arbitrary embodiment of the present invention to realize this process, and after will changing 7 codings or the input of UCS2 coding note transfer to ambulatory transceiver unit 440, by mobile communications network note is sent to receiving terminal by ambulatory transceiver unit 440.
After ambulatory transceiver unit 440 receives and sends to certain note that is connected to the user on the present networks equipment, to receive note and transfer to received code converting unit 430, be converted to the UTF-8 coding by the reception note that received code converting unit 430 is encoded 7 or UCS2 encodes.Received code converting unit 430 can adopt the note received code conversion method among the arbitrary embodiment of the present invention to realize this conversion.The reception note that is converted to UTF-8 coding transfers to user's input-output unit 410, will be received note and be presented on the web browser that appointment Unicode encodes by being connected with user's network by it.Web browser has been finished Unicode is encoded to Unicode to UTF-8 coding and UTF-8 conversion in this process.
The present invention can be used to have the routing device of function of receiving and sending short message, also can be used to provide the server of SMS.Especially for routing device, the present invention not only can save and deposit the required Flash of various countries' code table, reduces hardware cost, and can avoid safeguarding multi-lingual code table in the later stage operation process, reduces maintenance cost simultaneously.
Above-described embodiment of the present invention does not constitute the qualification to protection range of the present invention.Any any modification of being done within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within the claim protection range of the present invention.

Claims (10)

1. the code conversion method that note sends is characterized in that, may further comprise the steps:
Specify the note input with input character with universal character set transformat UTF coding transmission;
The input character that receives is mapped as universal character set UCS coding by the UTF coding;
Judge the character that can not adopt 7 codings that whether comprises regulation in the input character, if then send with the UCS coding; If not, input character being converted to 7 codings sends.
2. the code conversion method that sends of note according to claim 1 is characterized in that described method also comprises:
The UCS that sets up the special UCS character of regulation is encoded to the mapping relations of 7 codings;
Set up the mapping relations of UCS code value to 7 coding of the special ASCII ascii character of stipulating;
The character that can not adopt 7 codings of described regulation is: other characters in all characters of regulation except that special UCS character and ascii character.
Described UCS code conversion with input character is that 7 codings are specially:
If the UCS of input character is encoded to the UCS coding of special UCS character, be converted into 7 corresponding codings according to the mapping relations of being set up;
If the UCS code value of input character is the UCS code value of special ascii character, be converted into 7 corresponding codings according to the mapping relations of being set up;
Otherwise minimum 7 of input character UCS coding is its 7 codings.
3. the code conversion method that sends as note as described in the claim 2 is characterized in that, described method also comprised before input character is mapped as the UCS coding by the UTF coding:
When input character is code value less than 128 ascii character, wherein special ascii character is converted into 7 corresponding codings according to the mapping relations of the special ascii character of being set up, the character beyond the special ascii character is got its minimum 7 be its 7 codings.
4. the code conversion method that sends as note as described in the claim 2, it is characterized in that: the mapping relations of UCS code value to 7 coding of described special ascii character comprise the mapping relations of UCS code value to 17 codings of the special ascii character of 1 regulation, and the mapping relations of the UCS code value to 2 of the special ascii character of 1 regulation 7 codings;
Described special ascii character comprises the ISO 8859-1 of International Standards Organization character, 8 bit machine code page or leaf 437PCCP437 or 8 bit machines coding Danish/Norwegian PCDN.
5. the code conversion method that sends as note as described in any one of the claim 1 to 4, it is characterized in that, described method also comprises before the note that sends the UCS2 coding: if the order of note receiving terminal processing encoded byte is different with transmitting terminal, then byte order is adjusted into the processing sequence of receiving terminal.
6. the code conversion method that note receives is characterized in that, may further comprise the steps:
Specify the character of the display end reception of note with the UTF coding transmission;
If the note character that receives is 7 codings, then be converted into the UCS coding;
The reception character conversion of UCS coding is the UTF coding and transfers to the display end demonstration.
7. the code conversion method that receives as note as described in the claim 6 is characterized in that described method also comprises:
Set up 7 mapping relations that are encoded to the UCS coding of the special UCS character of regulation;
The 7 bit code values of setting up the special ascii character of regulation arrive the mapping relations of UCS coding;
Described 7 code conversion that will receive character are that the UCS coding is specially:
If receive 77 codings that are encoded to special UCS character of character, be converted into corresponding UCS coding according to the mapping relations of being set up;
If receive 77 codings that are encoded to special ascii character of character, be converted into corresponding UCS code value according to the mapping relations of being set up, and be converted to the UCS coding in the mode of high position benefit 0;
Otherwise, 7 codings receiving character are converted to the UCS coding in a high position 0 the mode of mending.
8. the code conversion method that receives as note as described in the claim 7, it is characterized in that: the mapping relations that 7 of described special ascii character are encoded to the UCS code value comprise 17 mapping relations that are encoded to the UCS code value of the special ascii character of 1 regulation, and 27 mapping relations that are encoded to the UCS code value of the special ascii character of 1 regulation.
9. the code conversion method that receives as note as described in any one of the claim 6 to 8, it is characterized in that: before the reception character conversion with the UCS coding is the UTF coding, if it is different with receiving terminal that the note transmitting terminal is handled the order of encoded byte, then byte order is adjusted into the processing sequence of receiving terminal.
10. the network equipment with transmitting-receiving SMS is characterized in that, comprise user's input-output unit, send transcoder unit, received code converting unit and ambulatory transceiver unit, wherein:
User's input-output unit receives the note input of user by the World Wide Web (WWW) Web browser of appointment Unicode coding, and output is sent to the browser display of specifying the Unicode coding;
Sending transcoder unit is used for the UTF-8 code conversion of input is 7 codings or UCS2 coding and transfers to the transmission of ambulatory transceiver unit;
7 coding notes or UCS2 coding note that the received code converting unit is used for the ambulatory transceiver unit is received are converted to the UTF-2 coding and transfer to user's input-output unit;
The ambulatory transceiver unit is used for receiving and dispatching note.
CNB2005101156431A 2005-11-08 2005-11-08 Code-conversion method for shortmessage receiving and transmitting and network apparatus used thereof Expired - Fee Related CN100425081C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101156431A CN100425081C (en) 2005-11-08 2005-11-08 Code-conversion method for shortmessage receiving and transmitting and network apparatus used thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101156431A CN100425081C (en) 2005-11-08 2005-11-08 Code-conversion method for shortmessage receiving and transmitting and network apparatus used thereof

Publications (2)

Publication Number Publication Date
CN1816170A true CN1816170A (en) 2006-08-09
CN100425081C CN100425081C (en) 2008-10-08

Family

ID=36908079

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101156431A Expired - Fee Related CN100425081C (en) 2005-11-08 2005-11-08 Code-conversion method for shortmessage receiving and transmitting and network apparatus used thereof

Country Status (1)

Country Link
CN (1) CN100425081C (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938719A (en) * 2010-09-03 2011-01-05 中兴通讯股份有限公司 Method for coding and decoding short messages (SMS), device and terminal
WO2011017927A1 (en) * 2009-08-12 2011-02-17 中兴通讯股份有限公司 Short message encoding method, device and system
CN102014352A (en) * 2010-08-19 2011-04-13 上海闻泰电子科技有限公司 Method for converting short message coded format
CN101309483B (en) * 2008-05-29 2011-07-06 华为终端有限公司 Short message encoding and decoding method and terminal
CN102158832A (en) * 2011-04-22 2011-08-17 中兴通讯股份有限公司 Method and device for self-adaptively coding short message
CN101345952B (en) * 2008-09-03 2012-04-04 华为终端有限公司 Data storing and reading method, device and system for client identification card
CN102665184A (en) * 2012-04-24 2012-09-12 中兴通讯股份有限公司 Coding method and device for increasing short message utilization rate
CN101568077B (en) * 2008-04-23 2013-02-27 三星电子株式会社 Method and terminal for transmitting and receiving short messages
WO2013075457A1 (en) * 2011-11-22 2013-05-30 中兴通讯股份有限公司 Method, device and system for processing short messages
WO2013182079A1 (en) * 2012-11-20 2013-12-12 中兴通讯股份有限公司 Short message transcoding method and device
CN107919943A (en) * 2016-10-11 2018-04-17 阿里巴巴集团控股有限公司 Coding, coding/decoding method and the device of binary data
CN112527705A (en) * 2020-11-05 2021-03-19 山东云海国创云计算装备产业创新中心有限公司 PCIe DMA data path verification method, device and equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102664634B (en) * 2012-04-16 2016-02-17 中国航空无线电电子研究所 A kind of for data compression method during dipper system transmitting-receiving Chinese-character text message

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11215210A (en) * 1998-01-21 1999-08-06 Aiwa Co Ltd Communication terminal equipment
JP2000311163A (en) * 1999-04-28 2000-11-07 Sanyo Electric Co Ltd Kana/kanji converting device, portable information terminal and computer readable recording medium
GB2359399B (en) * 2000-02-21 2004-06-02 Kenwood Corp Character display
CN1494300A (en) * 2002-11-01 2004-05-05 英华达(上海)电子有限公司 Character conversion method used in mobile telephone
CN1581155A (en) * 2003-08-15 2005-02-16 英华达(上海)电子有限公司 Method for setting special Chinese character written-form in mobile hand-set

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101568077B (en) * 2008-04-23 2013-02-27 三星电子株式会社 Method and terminal for transmitting and receiving short messages
CN101309483B (en) * 2008-05-29 2011-07-06 华为终端有限公司 Short message encoding and decoding method and terminal
CN101345952B (en) * 2008-09-03 2012-04-04 华为终端有限公司 Data storing and reading method, device and system for client identification card
WO2011017927A1 (en) * 2009-08-12 2011-02-17 中兴通讯股份有限公司 Short message encoding method, device and system
CN102014352B (en) * 2010-08-19 2016-03-23 上海闻泰电子科技有限公司 A kind of conversion method of short message coded format
CN102014352A (en) * 2010-08-19 2011-04-13 上海闻泰电子科技有限公司 Method for converting short message coded format
WO2012027932A1 (en) * 2010-09-03 2012-03-08 中兴通讯股份有限公司 Method, equipment and terminal for encoding/decoding short message
CN101938719A (en) * 2010-09-03 2011-01-05 中兴通讯股份有限公司 Method for coding and decoding short messages (SMS), device and terminal
CN102158832A (en) * 2011-04-22 2011-08-17 中兴通讯股份有限公司 Method and device for self-adaptively coding short message
WO2013075457A1 (en) * 2011-11-22 2013-05-30 中兴通讯股份有限公司 Method, device and system for processing short messages
CN102665184A (en) * 2012-04-24 2012-09-12 中兴通讯股份有限公司 Coding method and device for increasing short message utilization rate
CN102665184B (en) * 2012-04-24 2014-12-10 中兴通讯股份有限公司 Coding method and device for increasing short message utilization rate
WO2013182079A1 (en) * 2012-11-20 2013-12-12 中兴通讯股份有限公司 Short message transcoding method and device
CN107919943A (en) * 2016-10-11 2018-04-17 阿里巴巴集团控股有限公司 Coding, coding/decoding method and the device of binary data
WO2018068634A1 (en) * 2016-10-11 2018-04-19 阿里巴巴集团控股有限公司 Methods and devices for encoding and decoding binary data
KR20190064621A (en) * 2016-10-11 2019-06-10 알리바바 그룹 홀딩 리미티드 Method and device for encoding and decoding binary data
US20190245906A1 (en) * 2016-10-11 2019-08-08 Alibaba Group Holding Limited Methods and devices for encoding and decoding binary data
RU2725763C1 (en) * 2016-10-11 2020-07-06 Алибаба Груп Холдинг Лимитед Methods and apparatus for encoding and decoding binary data
CN107919943B (en) * 2016-10-11 2020-08-04 阿里巴巴集团控股有限公司 Method and device for coding and decoding binary data
US10785277B2 (en) * 2016-10-11 2020-09-22 Alibaba Group Holding Limited Methods and devices for encoding and decoding binary data
AU2017342863B2 (en) * 2016-10-11 2020-10-22 Advanced Nova Technologies (Singapore) Holding Pte. Ltd. Methods and devices for encoding and decoding binary data
KR102249267B1 (en) * 2016-10-11 2021-05-10 어드밴스드 뉴 테크놀로지스 씨오., 엘티디. Method and device for encoding and decoding binary data
CN112527705A (en) * 2020-11-05 2021-03-19 山东云海国创云计算装备产业创新中心有限公司 PCIe DMA data path verification method, device and equipment
CN112527705B (en) * 2020-11-05 2023-02-28 山东云海国创云计算装备产业创新中心有限公司 PCIe DMA data path verification method, device and equipment

Also Published As

Publication number Publication date
CN100425081C (en) 2008-10-08

Similar Documents

Publication Publication Date Title
CN1816170A (en) Code-conversion method for shortmessage receiving and transmitting and network apparatus used thereof
CN1175630C (en) Electron post terminal and electronic post system of automatic switch received electron post character series
CN1281090C (en) Method for realizing cell phone communication list inter transmission between cell phone terminals
CN1207876C (en) Short message gateway, system and method supply information service for mobile phone
CN1433239A (en) Device and method converting web page HTML data into format suitable for display on screen of mobile radio station
CN1871824A (en) Method and apparatus for translating resource names in a wireless environment
CN1437819A (en) Systems for customizing behaviors and interfaces in service invocations
CN1291853A (en) Device and method for providing internet content to short news service radio device
CN1957359A (en) Initiation of actions with compressed action language representations
CN1811753A (en) Method and system for binary serialization of documents
CN1610442A (en) Text message based mobile phone configuration system
CN1181662C (en) Hand written character input method for mobile telephone and mobile phone with said function
WO2017000915A1 (en) Multicast transmission method, information extraction method and corresponding terminal and device
CN1826732A (en) Huffman coding and decoding
CN1848973A (en) Short message group transmitting method, terminal and short message center
CN105450789B (en) Compression of internet protocol version 6 addresses in wireless sensor networks
CN1297122C (en) System and method for realizing transmitting and receiving e-mail on mobile terminal using MMS
CN1748369A (en) Method and device for text data compression
EP2740244B1 (en) Character enablement in short message service
CN103138871A (en) Server data processing system and method of application program of mobile communication system
CN1192658C (en) Character display technique
CN102131161B (en) Method, device and system for encoding short message
WO2013182079A1 (en) Short message transcoding method and device
CN1960375A (en) Method for efficiently transmitting/receiving data at mobile communication network supporting TCP/IP protocol
US20050070224A1 (en) Method of using external electronic device on fixed platform to operate short messages through mobile communication device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081008

Termination date: 20191108

CF01 Termination of patent right due to non-payment of annual fee