<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">Hi all --<div class="mb_sig"></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>