[Pharo-project] Write accentuate characters in file

Damien Cassou damien.cassou at gmail.com
Mon May 16 17:12:57 CEST 2011

On Mon, May 16, 2011 at 5:09 PM, Sven Van Caekenberghe <sven at beta9.be> wrote:
> FileStream newFileNamed: '/tmp/foo.txt' do: [ :each | each nextPutAll: 'ééé' ].
> (FileStream fileNamed: '/tmp/foo.txt') upToEnd 'ééé'

sure, you stay in UTF-8 all along. You will see the problem if you
visualise the file within a MacOS X file editor that is configured to
display MacRoman by default.

Damien Cassou

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry

More information about the Pharo-project mailing list