<div dir="ltr">Hello All,<br>I am using text morphs which may contain extended ascii characters (in my case spanish characters &#39;ñáéíóú&#39;).&nbsp; When I save those morphs and bring them back to screen everything works fine. My problem comes when I write the morphs contents to a plain .txt file (which in my case has to be opened with TextEdit in Mac Osx). In that case the special characters are expanded into several.<br>
<br>I am working with Squeak 3.9 in Mac OsX.&nbsp; I have tried UTF8TextConverter but I am obviously doing something wrong (My knowledge of this issue is really scarce) . My code can be sumarized with this snippet.<br><br><br>
<b>tm := TextMorph new openInHand.</b><br>
(I write inside the morph some text contaning special chars, such as &#39;bañándose&#39;)<br><br>(Then I write it to a file)<b><br>utfString := (tm contents string) convertToWithConverter: (UTF8TextConverter new).<br>aFile:= CrLfFileStream forceNewFileNamed: &#39;./myfile.txt&#39;.<br>
aFile nextPutAll: utfString.<br>aFile close.</b><br><br>And that&#39;s it. When I open the file in TextEdit I get &#39;ba√ɬ±√ɬ°ndose&#39;. &nbsp;I have tried out some other bizarre strategies but they dont work either :-(<br>
<br>Thanks very much for your help,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Javier<br>
</div>