Hey Torsten,

On 08 May 2012, at 12:10, Torsten Bergmann wrote:

> | stream text |
> stream := (FileStream fileNamed: 'c:\text.txt')
>                       converter: ISO885915TextConverter new;
>                       yourself.
> text := stream contents.
> text = 'Teilrückzahlung'
> 
> returns with true for me on a german WindowsXP with the attached file.
> 
> Maybe it is a file format DOS/Unix issue. 
> 
> Did you check the bytes/characters in the resulting strings in
> an inspector to see the differences:
> 
> ...
> text := stream contents.
> text inspect.
> 'Teilrückzahlung' inspect.
> 
> Bye
> T.

You're in a better position than me to comment, of course.

On my Mac I get:

| stream text |
stream := (FileStream fileNamed: '/Users/sven/Desktop/pharo_example_latin1.txt')
                        converter: ISO885915TextConverter new;
                        yourself.
(stream contents at: 6) codePoint 71303420
('Teilrückzahlung' at: 6) codePoint 252

252 is lowercase umlaut in Unicode, no ?
What ISO885915TextConverter does is in Smalltalk, not it the OS, right ?

Sven


Reply via email to