Yuan HOng schrieb:
>> Ok, I start to understand. The copyright symbol is not part of your
>> character set gbk (not used that much in China it seems ;-).
> 
> We have in the gbk character set the copyright symbol. Surprising? ;-)
> This symbol however is double-width and require a Chinese font.

Even in double-width? Surprising indeed ;-) But then I still don't
understand the problem, since if you're using gbk you are surely using a
Chinese font anyway so why can't you use the "Chinese" copyright symbol?
(Sorry for my ignorance about Chinese char sets.)

> The HTML document itself containing such code is definitely of 'gbk'
> encoding, not a mixed encoding of unicode and gbk. It doesn't matter
> that to render the ©, one browser might choose to use the unicode
> symbol. We are dealing with the HTML source here, not the rendering of
> it, right?

Ok, I think you're right. I just had a look at the HTML specs. Actually
we have to differentiate between the *document character set* (which is
always equivalent to unicode for HTML) and the *character encoding*
(e.g. "gbk", as specified in the content-type header or meta tag).

The specs say "Occasional characters that fall outside this encoding may
still be represented by character references. These always refer to the
document character set, not the character encoding."

This is exactly what you are trying to do here with your © entity
reference (and what I meant with "mixing" gbk with unicode). It seems to
be a perfectly valid approach and Kid should not give an error. I'll fix
this in the next Kid version.

> You know unicode is pretty new. Long before that, to use Chinese
> characters, we use gb2312 and after that gbk encoding, which use 2
> bytes to represent a single Chinese character. Most existing
> applications in China, include web applications, still use these 2
> encoding.

Why is that? Are there any browsers used in China which do not support
utf-8? I just remembered that there are resentments against using
unicode in Japan (http://www.jbrowse.com/text/unij.html), maybe
something similar applies to China?

-- Christoph

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kid-template-discuss mailing list
kid-template-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss

Reply via email to