Actually, this testcase may be wrong, but reproduces the problem when doing
a fileout with tildes and ñ's in packages or authors...

BTW, it does not fail on the assert, it raises an exception when sending the
#nextFromStream:  :S

On Mon, Jul 4, 2011 at 3:30 PM, Sven Van Caekenberghe <[email protected]> wrote:

> 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