Email::Store::Attachment - my losing battle
Jonathan Stowe
jns at gellyfish.com
Fri Dec 1 13:01:18 GMT 2006
On Fri, 2006-12-01 at 11:01 +0000, Toby Corkindale wrote:
> On Fri, Dec 01, 2006 at 05:38:15AM -0500, IvorW wrote:
> > > -----Original Message-----
> > > From: Toby Corkindale [mailto:tjc at wintrmute.net]
> > > Sent: 01 December 2006 10:23
> > > To: London.pm Perl M[ou]ngers
> > > Subject: Re: Email::Store::Attachment - my losing battle
> > >
> > >
> > >
> > > On Wed, Nov 29, 2006 at 01:42:04PM +0000, Christopher Jones wrote:
> > > > Should you be using binmode?
> > >
> > > Isn't binmode meaningless on non-DOS machines?
> >
> > At a risk of taking you out of context, no.
> >
> > There are more O/S out there than just Winoze and *nix, VMS for instance.
> >
> > binmode is also an issue for character internationalisation: UTF-8 etc. if
> > your text file needs to be interpreted according to a character set.
>
> Do you mean binmode is also an issue for *nix machines, in that case?
>
> I thought utf8 (or other character sets) were handled via IO Layers, and do
> seem to work for me on the *nix systems I've used.
> ie. open(FH, "<:utf8", "file")
Yes, but you can use binmode to apply layers to already opened
filehandles:
binmode FH, ':utf8';
/J\
More information about the london.pm
mailing list