gb18030.5 (8962b7a518c6ba584f6a64a9c174e74505e57e1a) gb18030.5 (b9384efc1c264c63a53d8c420461ef9c0c17c2b1)
1.\" Copyright (c) 2002, 2003 Tim J. Robbins
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 9 unchanged lines hidden (view full) ---

18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD$
1.\" Copyright (c) 2002, 2003 Tim J. Robbins
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 9 unchanged lines hidden (view full) ---

18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD$
26.\"
26.Dd August 10, 2003
27.Dt GB18030 5
28.Os
29.Sh NAME
30.Nm gb18030
31.Nd "GB 18030 encoding method for Chinese text"
32.Sh SYNOPSIS
33.Nm ENCODING

--- 8 unchanged lines hidden (view full) ---

42It also provides code space for all Unicode 3.0 code points.
43.Pp
44Multibyte characters in the
45.Nm GB18030
46encoding can be one byte, two bytes, or
47four bytes long.
48There are a total of over 1.5 million code positions.
49.Pp
27.Dd August 10, 2003
28.Dt GB18030 5
29.Os
30.Sh NAME
31.Nm gb18030
32.Nd "GB 18030 encoding method for Chinese text"
33.Sh SYNOPSIS
34.Nm ENCODING

--- 8 unchanged lines hidden (view full) ---

43It also provides code space for all Unicode 3.0 code points.
44.Pp
45Multibyte characters in the
46.Nm GB18030
47encoding can be one byte, two bytes, or
48four bytes long.
49There are a total of over 1.5 million code positions.
50.Pp
50.No GB\ 11383-1981 ( Ns
51.Tn ASCII )
51.No GB\ 11383-1981 Pq Tn ASCII
52characters are represented by single bytes in the range 0x00 to 0x7F.
53.Pp
54Chinese characters are represented as either two bytes or four bytes.
55Characters that are represented by two bytes begin with a byte in the range
560x81-0xFE and end with a byte either in the range 0x40-0x7E or 0x80-0xFE.
57.Pp
58Characters that are represented by four bytes begin with a byte in the range
590x81-0xFE, have a second byte in the range 0x30-0x39, a third byte in the range

--- 19 unchanged lines hidden ---
52characters are represented by single bytes in the range 0x00 to 0x7F.
53.Pp
54Chinese characters are represented as either two bytes or four bytes.
55Characters that are represented by two bytes begin with a byte in the range
560x81-0xFE and end with a byte either in the range 0x40-0x7E or 0x80-0xFE.
57.Pp
58Characters that are represented by four bytes begin with a byte in the range
590x81-0xFE, have a second byte in the range 0x30-0x39, a third byte in the range

--- 19 unchanged lines hidden ---