On 16.05.2011 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.
FileStream newFileNamed: 'test.txt' do: [ :stream |
������ stream converter: MacRomanTextConverter new; " or: TextConverter newForEncoding: 'mac-roman' "
������ nextPutAll: '������' ].

Cheers,
Henry