May 16, 2011
3:09 p.m.
On 16 May 2011, at 16:42, Adrien BARREAU wrote:
Hello,
A small question I have: how can I write a "é" character in a file and >really< get it in Mac OS? I tried with:
FileStream newFileNamed: 'test.txt' do: [ :each | each nextPutAll: 'ééé' ]
and got: 'â©â©â©'.
I also tried with FileSystem and got : 'ÃÃÃ'.
I do not see another way to do that ...
Regards, Adrien.
Works for me (Pharo 1.2.x , Mac OS X 10.6.x) FileStream newFileNamed: '/tmp/foo.txt' do: [ :each | each nextPutAll: 'ééé' ]. (FileStream fileNamed: '/tmp/foo.txt') upToEnd 'ééé' Sven