About multibytestring
stephane ducasse
stephane.ducasse at free.fr
Sat Jul 7 14:00:58 UTC 2007
hi all
I'm confused.
I have a MultiByteFileStream which has a MacRomanTextConverter
and I get an error Cannot write wide characters
Do you have any idea of the direction in which I should start to look
for?
Changing the converter?
Will I lose the encodings of my string?
nextPut: aCharacter toStream: aStream
| ch |
aStream isBinary ifTrue: [^aCharacter storeBinaryOn: aStream].
(ch := aCharacter squeakToMac) asciiValue > 255
ifTrue:[^self error: 'Cannot write wide characters'].
aStream basicNextPut: ch.
More information about the Squeak-dev
mailing list
|