Here is an example with the file out of the equation:

| stream |
stream := (ByteArray readHexFrom: '5465696c72fc636b7a61686c756e67') asString 
readStream.
stream next: 5.
(ISO885915TextConverter new nextFromStream: stream) codePoint.

=> 71303420

| stream |
stream := (ByteArray readHexFrom: '5465696c72fc636b7a61686c756e67') readStream.
stream next: 5.
((ZnCharacterEncoder newForEncoding: 'iso-8859-15') nextFromStream: stream) 
codePoint.

=> 252

<rant>Notice how f*cked up TextConverters are: when given a binary stream, 
their natural input one would think, they just don't do any conversion!</rant>

On 08 May 2012, at 15:30, Norbert Hartl wrote:

> Can you paste the code you used to come to this result?
> 
> Norbert
> 
> Am 08.05.2012 um 14:46 schrieb Torsten Bergmann:
> 
>> Sven wrote
>>> On my Mac I get:
>>> ...
>>> (stream contents at: 6) codePoint 71303420
>>> ('Teilrückzahlung' at: 6) codePoint 252
>> 
>> Hi Sven,
>> 
>> on Windows I get:
>> 
>> (stream contents at: 6) codePoint 252
>> ('Teilrückzahlung' at: 6) codePoint 252
>> 
>> For 
>> 
>> $ü codePoint I also get 252
>> 
>> So on Windows (at least for my test) it does 
>> not have the "leadingChar".
>> 
>> Bye
>> T.
>> 
>> -- 
>> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
>> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
>> 
> 
> 


Reply via email to