FYI<br><br>
<div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Eric</b> <span dir="ltr">&lt;<a href="mailto:ericqiu@gmail.com">ericqiu@gmail.com</a>&gt;</span><br>Date: 2011/1/28<br>
Subject: Re: [squeak-dev] About Squeak 4.1 Language Support<br>To: <a href="http://kksubbu.ml">kksubbu.ml</a>@<a href="http://gmail.com">gmail.com</a><br><br><br>
<div>Thanks Subbu,</div>
<div> </div>
<div>As you mentioned, I tried the CNGBTextConverter existing in Squeak4.1 and I assume that it will invoke the languageEnvironment to SimplifiedChineseEnvironment, am i right?</div>
<div> </div>
<div>I tried following code like:</div>
<div> (MultiByteFileStream fileNamed: &#39;file.txt&#39;)<br>               converter: (CNGBTextConverter new);<br>               contents.</div>
<div> </div>
<div>And it still doesn&#39;t work, does it mean i need to import some fonts for it or other ways?</div>
<div> </div>
<div>Also another question is in Squeak4.1 what could i do to make sure the the language environment I use is chinese or some others?</div>
<div> </div>
<div>My understanding now in Squeak4.1 that the default language is UTF8 or Unicode, where could i do the switch? </div>
<div> </div>
<div>I am just a beginner on Squeak Smalltalk, please correct me if I make any mistakes on understanding</div>
<div> </div>
<div>Eric<br></div>
<div class="gmail_quote">2011/1/27 K. K. Subramaniam <span dir="ltr">&lt;<a href="http://kksubbu.ml/" target="_blank">kksubbu.ml</a>@<a href="http://gmail.com/" target="_blank">gmail.com</a>&gt;</span> 
<div>
<div></div>
<div class="h5"><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>On Thursday 27 Jan 2011 3:22:37 pm Eric wrote:<br>&gt; Now Squeak 4.1 has supported Chinese from Code level, I have tried to read<br>&gt; a file containing Chinese character from attached file, it showed up ??<br>&gt; for chinese character.<br>
&gt;<br>&gt; Note: run<br>&gt;<br>&gt; (MultiByteFileStream fileNamed: &#39;file.txt&#39;) contents<br>&gt; in the workspace<br>&gt;<br>&gt; Any one know some about it?<br><br></div>LanguageEnvironment defaultSystemConverter<br>
<br>determines the text converter used for reading text files for your environment.<br>Inspect<br>   (MultiByteFileStream fileNamed: &#39;file.txt&#39;) converter<br>and make sure it is UTF8TextConverter. If not, you may need to override the<br>
converter before reading its contents. e.g.<br>       (MultiByteFileStream fileNamed: &#39;file.txt&#39;)<br>               converter: (UTF8TextConverter new);<br>               contents.<br><br>If the characters are being decoded correctly then you may need specific<br>
language support (fonts, rendering engine etc.) for your dialect. See language<br>support classes in Multilingual-Languages for more details.<br><br>Subbu<br></blockquote></div></div></div><br></div><br>