1QGb18030Codec(3qt) QGb18030Codec(3qt)
2
3
4
6 QGb18030Codec - Conversion to and from the Chinese GB18030/GBK/GB2312
7 encoding
8
10 All the functions in this class are reentrant when Qt is built with
11 thread support.</p>
12
13 #include <qgb18030codec.h>
14
15 Inherits QTextCodec.
16
17 Inherited by QGbkCodec and QGb2312Codec.
18
20 The QGb18030Codec class provides conversion to and from the Chinese
21 GB18030/GBK/GB2312 encoding.
22
23 GBK, formally the Chinese Internal Code Specification, is a commonly
24 used extension of GB 2312-80. Microsoft Windows uses it under the name
25 codepage 936.
26
27 GBK has been superceded by the new Chinese national standard GB
28 18030-2000, which added a 4-byte encoding while remaining compatible
29 with GB2312 and GBK. The new GB 18030-2000 may be described as a
30 special encoding of Unicode 3.x and ISO-10646-1.
31
32 Special thanks to charset gurus Markus Scherer (IBM), Dirk Meyer (Adobe
33 Systems) and Ken Lunde (Adobe Systems) for publishing an excellent GB
34 18030-2000 summary and specification on the Internet. Some must-read
35 documents are:
36
37 ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/pdf/GB18030_Summary.pdf
38
39 http://oss.software.ibm.com/cvs/icu/~checkout~/charset/source/gb18030/gb18030.html
40
41 http://oss.software.ibm.com/cvs/icu/~checkout~/charset/data/xml/gb-18030-2000.xml
42
43 The GBK codec was contributed to Qt by Justin Yu
44 <justiny@turbolinux.com.cn> and Sean Chen <seanc@turbolinux.com.cn>.
45 They may also be reached at Yu Mingjian <yumj@sun.ihep.ac.cn>,
46 <yumingjian@china.com> Chen Xiangyang <chenxy@sun.ihep.ac.cn>
47
48 The GB18030 codec Qt functions were contributed to Qt by James Su
49 <suzhe@gnuchina.org>, <suzhe@turbolinux.com.cn> who pioneered much of
50 GB18030 development on GNU/Linux systems.
51
52 The GB18030 codec was contributed to Qt by Anthony Fok
53 <anthony@thizlinux.com>, <foka@debian.org> using a Perl script to
54 generate C++ tables from gb-18030-2000.xml while merging contributions
55 from James Su, Justin Yu and Sean Chen. A copy of the source Perl
56 script is available at:
57
58 http://people.debian.org/~foka/gb18030/gen-qgb18030codec.pl
59
60 The copyright notice for their code follows:
61
62 Copyright (C) 2000 TurboLinux, Inc. Written by Justin Yu and Sean Chen.
63 Copyright (C) 2001, 2002 Turbolinux, Inc. Written by James Su.
64 Copyright (C) 2001, 2002 ThizLinux Laboratory Ltd. Written by Anthony
65 Fok.
66
67 Redistribution and use in source and binary forms, with or without
68 modification, are permitted provided that the following conditions are
69 met: <ol type=1>
70
71 Redistributions of source code must retain the above copyright notice,
72 this list of conditions and the following disclaimer.
73
74 Redistributions in binary form must reproduce the above copyright
75 notice, this list of conditions and the following disclaimer in the
76 documentation and/or other materials provided with the distribution.
77
78 THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
79 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
80 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
81 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
82 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
83 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
84 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
85 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
86 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
87 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
88 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
89
90 See also Internationalization with Qt.
91
92
94 http://doc.trolltech.com/qgb18030codec.html
95 http://www.trolltech.com/faq/tech.html
96
98 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
99 license file included in the distribution for a complete license
100 statement.
101
103 Generated automatically from the source code.
104
106 If you find a bug in Qt, please report it as described in
107 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
108 help you. Thank you.
109
110 The definitive Qt documentation is provided in HTML format; it is
111 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
112 web browser. This man page is provided as a convenience for those users
113 who prefer man pages, although this format is not officially supported
114 by Trolltech.
115
116 If you find errors in this manual page, please report them to qt-
117 bugs@trolltech.com. Please include the name of the manual page
118 (qgb18030codec.3qt) and the Qt version (3.3.8).
119
120
121
122Trolltech AS 2 February 2007 QGb18030Codec(3qt)