Wide character in syswrite
Matt Lawrence
matt.lawrence at virgin.net
Tue Dec 11 18:14:56 GMT 2007
Jonathan Rockway wrote:
> On Tue, 2007-12-11 at 17:35 +0000, Matt Lawrence wrote:
>
>> Ah. The RFC says it wants UTF-8 [1], so I would guess the right thing to
>> do is to Encode::decode('UTF-8', ...) before passing into the module.
>>
>
> Sorry for the double post, but it should be encode, not decode. decode
> decodes encoded octets (from the network, etc.) into perl characters.
> encode encodes perl characters to something that other systems can
> understand, like UTF-8. (Yes, perl uses utf8 internally, but that is an
> irrelevant detail that will make broken code appear to work sometimes.
> Best if you think of it in terms of perl characters vs. The Real World.)
>
Oops, quite right. I'm always getting those two mixed up. *blush*
Matt
More information about the london.pm
mailing list