Re: How can I use tcl to read files written in GBK or GB18030 encoding?
- From: schlenk <schlenk@xxxxxxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 07:51:57 -0800 (PST)
Larry W. Virden wrote:
I know that Tcl has quite a large list of encodings that it supports.According to Wikipedia ( http://en.wikipedia.org/wiki/GB_18030 ) its
However, I've a request for guidance by someone who needs to read
files using either GBK or GB18030 (I think these are alternate names
for the same encoding...).
Has anyone worked out what one needs to do for this?
an encoding mandating support for non BMP characters. As Tcl currently
only supports the BMP your out of luck if you need full compliance.
But you might be able to get support for the BMP part of the encoding.
But you might come up with a limited mapping file to feed to the Tcl
encoding system (like those in the Tcl source dirs, there is some tool
in the tools/ subdir to convert the unicode.org txt files to Tcl enc
files). After that you need to put the enc File in the right places
(or register them later like the various texts for starkits describe
it).
Michael
.
- References:
- How can I use tcl to read files written in GBK or GB18030 encoding?
- From: Larry W. Virden
- How can I use tcl to read files written in GBK or GB18030 encoding?
- Prev by Date: Re: How can I use tcl to read files written in GBK or GB18030 encoding?
- Next by Date: Re: Why doesn't foreach return a value
- Previous by thread: Re: How can I use tcl to read files written in GBK or GB18030 encoding?
- Next by thread: Re: How can I use tcl to read files written in GBK or GB18030 encoding?
- Index(es):
Relevant Pages
|