Re: replace unicode characters by &#number; representation
From: Alan J. Flavell (flavell_at_ph.gla.ac.uk)
Date: 02/22/04
- Next message: Alan J. Flavell: "Re: replace unicode characters by &#number; representation"
- Previous message: Lukas Mai: "Re: Simple code runs on linux, but not on windows -- why?"
- In reply to: Ben Morrow: "Re: replace unicode characters by &#number; representation"
- Next in thread: Anno Siegel: "Re: replace unicode characters by &#number; representation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 22 Feb 2004 18:12:18 +0000
On Sat, 21 Feb 2004, Ben Morrow wrote:
> I usually use
>
> use Encode qw/:fallbacks/;
Thanks for pointing that out. I wasn't properly aware of the feature.
> $PerlIO::encoding::fallback = FB_HTMLCREF;
> binmode STDOUT, ':encoding(ascii)'; # or iso8859-1, or whatever
>
> which will leave the conversion until the data is output.
OK, it looks as if the relevant documentation is in e.g
http://www.perldoc.com/perl5.8.0/lib/Encode.html
Thanks.
- Next message: Alan J. Flavell: "Re: replace unicode characters by &#number; representation"
- Previous message: Lukas Mai: "Re: Simple code runs on linux, but not on windows -- why?"
- In reply to: Ben Morrow: "Re: replace unicode characters by &#number; representation"
- Next in thread: Anno Siegel: "Re: replace unicode characters by &#number; representation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|