|
GB18030 environment:
In IE, invoke GB18030Form.html, choose View > Encoding > Simplified Chinese (GB18030), input surrogate data U+DB40, U+DC00.

Figure 5 Open DB2 Control Center to view the result.
The surrogate data displays as a square because the current DB2 UDB 8.1 cannot recognize surrogate data though DB2 database can store it.
To view the data in database clearly, in DB2 CLP, issue command:
Select the hex(c2) varchar, hex(c5) vargraphic from GB18030
F0A08080 D840DC00
The result is correct.
In Netscape, we do the same thing as in IE, also verify the result in DB2 CLP:
Select the hex(c2) varchar, hex(c5) vargraphic from GB18030
F0A08080 D840DC00
The result is also correct.
In Unicode environment:
In IE, choose View > Encoding > UTF-8, input U+D840,U+DC00.
In DB2 CLP, issue command:
Select the hex(c2) varchar, hex(c5) vargraphic from GB18030
F0A08080 D840DC00
In Netscape, choose View > Character Encoding > UTF-8, input U+D840,U+DC00.
In DB2 CLP, issue command:
Select the hex(c2) varchar, hex(c5) vargraphic from GB18030
F0908080 D800DC00
The result running with Netscape is not correct.
Netscape 7.0 does not work well with surrogate in UTF-8 environment.
|
Browser
|
GB18030 Env.
|
UTF-8 Env.
|
|
IE 6.0
|
Success
|
Success
|
|
Netscape 7.0
|
Success
|
Fail
|
|