Re: replace unicode characters by &#number; representation

From: Alan J. Flavell (flavell_at_ph.gla.ac.uk)
Date: 02/22/04


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.



Relevant Pages

  • Re: SW2006 file format
    ... with conversion problems and submitting conversion errors even before I get ... CAD program and are therefore biased - as am I for SolidWorks - but I have ... > I agree that some feature types cannot import/export due to new feature ... > own file structure for translations. ...
    (comp.cad.solidworks)
  • Re: Switching between color spaces
    ... Chinese is also a very simple language, and it has worked for millennia. ... Who is doing that conversion? ... PostScript when printing to a PostScript printer and use the PS printer ... driver's "pass through" feature. ...
    (comp.lang.postscript)
  • Re: Configuring the VB 6 to VB 2005 Converter (WAS: Re: VB 6 developers and .Net)
    ... Mike Ober. ... How do I turn this "feature" off? ... I was just wondering how widespread or otherwise is the conversion ... If the conversion is not that widespread what is the reason. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Writing bulletproof code
    ... Those conversion operators are a hand-made ... Even if fubble is defined as ... Range-restricted types may be a famous feature of Ada, ... particular relevance to any discussion of C++, a language which does not ...
    (comp.programming)
  • Re: CString not working as advertised
    ... to do the conversion to multi-byte so you don't always get ... message during compile. ... In VC6, and I think VC7, in a UNICODE ... IMO, this is a terrible feature, because ...
    (microsoft.public.vc.mfc)