xref: /freebsd/lib/libc/locale/gb18030.5 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
18ca5fa51STim J. Robbins.\" Copyright (c) 2002, 2003 Tim J. Robbins
28ca5fa51STim J. Robbins.\" All rights reserved.
38ca5fa51STim J. Robbins.\"
48ca5fa51STim J. Robbins.\" Redistribution and use in source and binary forms, with or without
58ca5fa51STim J. Robbins.\" modification, are permitted provided that the following conditions
68ca5fa51STim J. Robbins.\" are met:
78ca5fa51STim J. Robbins.\" 1. Redistributions of source code must retain the above copyright
88ca5fa51STim J. Robbins.\"    notice, this list of conditions and the following disclaimer.
98ca5fa51STim J. Robbins.\" 2. Redistributions in binary form must reproduce the above copyright
108ca5fa51STim J. Robbins.\"    notice, this list of conditions and the following disclaimer in the
118ca5fa51STim J. Robbins.\"    documentation and/or other materials provided with the distribution.
128ca5fa51STim J. Robbins.\"
138ca5fa51STim J. Robbins.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
148ca5fa51STim J. Robbins.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
158ca5fa51STim J. Robbins.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
168ca5fa51STim J. Robbins.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
178ca5fa51STim J. Robbins.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
188ca5fa51STim J. Robbins.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
198ca5fa51STim J. Robbins.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
208ca5fa51STim J. Robbins.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
218ca5fa51STim J. Robbins.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
228ca5fa51STim J. Robbins.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
238ca5fa51STim J. Robbins.\" SUCH DAMAGE.
248ca5fa51STim J. Robbins.\"
259e09ac85STim J. Robbins.Dd August 10, 2003
268ca5fa51STim J. Robbins.Dt GB18030 5
278ca5fa51STim J. Robbins.Os
288ca5fa51STim J. Robbins.Sh NAME
298ca5fa51STim J. Robbins.Nm gb18030
308ca5fa51STim J. Robbins.Nd "GB 18030 encoding method for Chinese text"
318ca5fa51STim J. Robbins.Sh SYNOPSIS
328ca5fa51STim J. Robbins.Nm ENCODING
338ca5fa51STim J. Robbins.Qq GB18030
348ca5fa51STim J. Robbins.Sh DESCRIPTION
358ca5fa51STim J. RobbinsThe
368ca5fa51STim J. Robbins.Nm GB18030
378ca5fa51STim J. Robbinsencoding implements GB 18030-2000, a PRC national standard for the encoding of
388ca5fa51STim J. RobbinsChinese characters.
398ca5fa51STim J. RobbinsIt is a superset of the older GB\ 2312-1980 and GBK encodings,
408ca5fa51STim J. Robbinsand incorporates Unicode's Unihan Extension A completely.
418ca5fa51STim J. RobbinsIt also provides code space for all Unicode 3.0 code points.
428ca5fa51STim J. Robbins.Pp
438ca5fa51STim J. RobbinsMultibyte characters in the
448ca5fa51STim J. Robbins.Nm GB18030
458ca5fa51STim J. Robbinsencoding can be one byte, two bytes, or
468ca5fa51STim J. Robbinsfour bytes long.
478ca5fa51STim J. RobbinsThere are a total of over 1.5 million code positions.
488ca5fa51STim J. Robbins.Pp
49b9384efcSRuslan Ermilov.No GB\ 11383-1981 Pq Tn ASCII
508ca5fa51STim J. Robbinscharacters are represented by single bytes in the range 0x00 to 0x7F.
518ca5fa51STim J. Robbins.Pp
528ca5fa51STim J. RobbinsChinese characters are represented as either two bytes or four bytes.
538ca5fa51STim J. RobbinsCharacters that are represented by two bytes begin with a byte in the range
548ca5fa51STim J. Robbins0x81-0xFE and end with a byte either in the range 0x40-0x7E or 0x80-0xFE.
558ca5fa51STim J. Robbins.Pp
568ca5fa51STim J. RobbinsCharacters that are represented by four bytes begin with a byte in the range
578ca5fa51STim J. Robbins0x81-0xFE, have a second byte in the range 0x30-0x39, a third byte in the range
588ca5fa51STim J. Robbins0x81-0xFE and a fourth byte in the range 0x30-0x39.
598ca5fa51STim J. Robbins.Sh SEE ALSO
608962b7a5STim J. Robbins.Xr euc 5 ,
6116854d3cSTim J. Robbins.Xr gb2312 5 ,
62dd5e8fdeSTim J. Robbins.Xr gbk 5 ,
638ca5fa51STim J. Robbins.Xr utf8 5
648ca5fa51STim J. Robbins.Rs
658ca5fa51STim J. Robbins.%T "Chinese National Standard GB 18030-2000: Information Technology -- Chinese ideograms coded character set for information interchange -- Extension for the basic set"
668ca5fa51STim J. Robbins.%D "March 2000"
678ca5fa51STim J. Robbins.Re
689e09ac85STim J. Robbins.Rs
699e09ac85STim J. Robbins.%Q "The Unicode Consortium"
709e09ac85STim J. Robbins.%T "The Unicode Standard, Version 3.0"
719e09ac85STim J. Robbins.%D "2000"
729e09ac85STim J. Robbins.Re
738ca5fa51STim J. Robbins.Sh STANDARDS
748ca5fa51STim J. RobbinsThe
758ca5fa51STim J. Robbins.Nm GB18030
768ca5fa51STim J. Robbinsencoding is believed to be compatible with GB 18030-2000.
77