<div dir="ltr"><div class="gmail_default" style="font-size:small">UTF-8.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Ron</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 11, 2022 at 8:42 AM Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de">marcel.taeumel@hpi.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id="gmail-m_-1963271871020350235__MailbirdStyleContent" style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);text-align:left" dir="ltr">Hi all --<div></div><div><br></div><div>What do you think should be the default encoding when opening a new file?</div><div><br></div><div>FileStream readOnlyFileNamed: 'foo' do: [:stream | stream contents].</div><div><br></div><div>They are system/platform-specific for now, but effectively utf-8 on many (if not most?) platforms. The original idea seemed to be that platform files could be opened without hassle. By now, everybody expects utf-8, especially when preparing files for the Web or other external, os-independent storage. However, there are platforms (and maybe even working VM versions) where this may not be true.</div><div><br></div><div>See Latin1Environment class >> #systemConverterClass to get an idea about what can be special about a platform's converter.</div><div><br></div><div>Note that you can always make it explicit:</div><div><br></div><div>FileStream readOnlyFileNamed: 'foo' do: [:stream |</div><div>   stream converter: UTF8TextConverter new.   </div><div>   stream contents].<br></div><div><br></div><div>(This is not about Squeak's code files .st .cs .changes .source, which are utf-8 by default already.)</div><div><br></div><div>Best,</div><div>Marcel</div></div><br>
</blockquote></div>