source: trunk/doc/html/qgb18030codec.html@ 190

Last change on this file since 190 was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 6.1 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/codecs/qgb18030codec.cpp:34 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QGb18030Codec Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QGb18030Codec Class Reference</h1>
33
34<p>The QGb18030Codec class provides conversion to and from the Chinese
35GB18030/GBK/GB2312 encoding.
36<a href="#details">More...</a>
37<p>All the functions in this class are <a href="threads.html#reentrant">reentrant</a> when Qt is built with thread support.</p>
38<p><tt>#include &lt;<a href="qgb18030codec-h.html">qgb18030codec.h</a>&gt;</tt>
39<p>Inherits <a href="qtextcodec.html">QTextCodec</a>.
40<p>Inherited by <a href="qgbkcodec.html">QGbkCodec</a> and <a href="qgb2312codec.html">QGb2312Codec</a>.
41<p><a href="qgb18030codec-members.html">List of all member functions.</a>
42<hr><a name="details"></a><h2>Detailed Description</h2>
43
44
45
46<p> The QGb18030Codec class provides conversion to and from the Chinese
47GB18030/GBK/GB2312 encoding.
48<p>
49<p> GBK, formally the Chinese Internal Code Specification, is a commonly
50used extension of GB 2312-80. Microsoft Windows uses it under the
51name codepage 936.
52<p> GBK has been superceded by the new Chinese national standard
53GB 18030-2000, which added a 4-byte encoding while remaining
54compatible with GB2312 and GBK. The new GB 18030-2000 may be described
55as a special encoding of Unicode 3.x and ISO-10646-1.
56<p> Special thanks to charset gurus Markus Scherer (IBM),
57Dirk Meyer (Adobe Systems) and Ken Lunde (Adobe Systems) for publishing
58an excellent GB 18030-2000 summary and specification on the Internet.
59Some must-read documents are:
60<ul>
61<li>
62<a href="ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/pdf/GB18030_Summary.pdf">ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/pdf/GB18030_Summary.pdf</a>
63<li> <a href="http://oss.software.ibm.com/cvs/icu/~checkout~/charset/source/gb18030/gb18030.html">http://oss.software.ibm.com/cvs/icu/~checkout~/charset/source/gb18030/gb18030.html</a>
64<li>
65<a href="http://oss.software.ibm.com/cvs/icu/~checkout~/charset/data/xml/gb-18030-2000.xml">http://oss.software.ibm.com/cvs/icu/~checkout~/charset/data/xml/gb-18030-2000.xml</a>
66</ul>
67<p> The GBK codec was contributed to Qt by
68Justin Yu &lt;justiny@turbolinux.com.cn&gt; and
69Sean Chen &lt;seanc@turbolinux.com.cn&gt;. They may also be reached at
70Yu Mingjian &lt;yumj@sun.ihep.ac.cn&gt;, &lt;yumingjian@china.com&gt;
71Chen Xiangyang &lt;chenxy@sun.ihep.ac.cn&gt;
72<p> The GB18030 codec Qt functions were contributed to Qt by
73James Su &lt;suzhe@gnuchina.org&gt;, &lt;suzhe@turbolinux.com.cn&gt;
74who pioneered much of GB18030 development on GNU/Linux systems.
75<p> The GB18030 codec was contributed to Qt by
76Anthony Fok &lt;anthony@thizlinux.com&gt;, &lt;foka@debian.org&gt;
77using a Perl script to generate C++ tables from gb-18030-2000.xml
78while merging contributions from James Su, Justin Yu and Sean Chen.
79A copy of the source Perl script is available at:
80<p> <a href="http://people.debian.org/~foka/gb18030/gen-qgb18030codec.pl">http://people.debian.org/~foka/gb18030/gen-qgb18030codec.pl</a>
81<p> The copyright notice for their code follows:
82<p>
83<p> Copyright (C) 2000 TurboLinux, Inc. Written by Justin Yu and Sean Chen.
84Copyright (C) 2001, 2002 Turbolinux, Inc. Written by James Su.
85Copyright (C) 2001, 2002 ThizLinux Laboratory Ltd. Written by Anthony Fok.
86<p> Redistribution and use in source and binary forms, with or without
87modification, are permitted provided that the following conditions
88are met:
89<ol type=1>
90<li> Redistributions of source code must retain the above copyright
91notice, this list of conditions and the following disclaimer.
92<li> Redistributions in binary form must reproduce the above copyright
93notice, this list of conditions and the following disclaimer in the
94documentation and/or other materials provided with the distribution.
95</ol>
96<p> THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
97ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
98IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
99ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
100FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
101DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
102OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
103HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
104LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
105OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
106SUCH DAMAGE.
107<p>See also <a href="i18n.html">Internationalization with Qt</a>.
108
109<!-- eof -->
110<hr><p>
111This file is part of the <a href="index.html">Qt toolkit</a>.
112Copyright &copy; 1995-2007
113<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
114<table width=100% cellspacing=0 border=0><tr>
115<td>Copyright &copy; 2007
116<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
117<td align=right><div align=right>Qt 3.3.8</div>
118</table></div></address></body>
119</html>
Note: See TracBrowser for help on using the repository browser.