First, #nextFromStream: returns a character, not a String.
Second, you have to encode before you decode, don't you ?
UTF8 is a binary encoding of Unicode characters.

Sven

On 04 Jul 2011, at 20:02, Guillermo Polito wrote:

> I've written the following test, which is failing.
> 
> testReadñCharacter
>     | converter |
>     converter := UTF8TextConverter new.
>     self assert: 'ñ' equals: (converter nextFromStream: 'ñ' readStream).
> 
> I attach a changeset with that test.  Am I ok or UTF8TextConverter is 
> behaving wrong?
> 
> Thanks,
> Guille
> <UTF8TextConverterTest.GuillermoPlito.1.cs>


Reply via email to