[squeak-dev] About Squeak 4.1 Language Support
K. K. Subramaniam
kksubbu.ml at gmail.com
Thu Jan 27 11:30:46 UTC 2011
On Thursday 27 Jan 2011 3:22:37 pm Eric wrote:
> Now Squeak 4.1 has supported Chinese from Code level, I have tried to read
> a file containing Chinese character from attached file, it showed up ??
> for chinese character.
>
> Note: run
>
> (MultiByteFileStream fileNamed: 'file.txt') contents
> in the workspace
>
> Any one know some about it?
LanguageEnvironment defaultSystemConverter
determines the text converter used for reading text files for your environment.
Inspect
(MultiByteFileStream fileNamed: 'file.txt') converter
and make sure it is UTF8TextConverter. If not, you may need to override the
converter before reading its contents. e.g.
(MultiByteFileStream fileNamed: 'file.txt')
converter: (UTF8TextConverter new);
contents.
If the characters are being decoded correctly then you may need specific
language support (fonts, rendering engine etc.) for your dialect. See language
support classes in Multilingual-Languages for more details.
Subbu
More information about the Squeak-dev
mailing list
|