RE: HTML::Entities issue

From: Jan Eden (lists_at_janeden.org)
Date: 04/29/04

  • Next message: reader_at_newsguy.com: "file renaming util in perl"
    Date: Thu, 29 Apr 2004 20:11:10 +0200
    To: "Charles K. Clarkson" <cclarkson@htcomp.net>,  Perl Lists <beginners@perl.org>
    
    

    Hi Charles,

    Charles K. Clarkson wrote on 29.04.2004:

    >Jan Eden <lists@janeden.org> wrote:
    > It may be an issue with your terminal software. Is
    >your terminal the place you expect to display results
    >of a script like this? Have you tried it under a
    >different terminal emulation?
    >
    > I tried a comparison test. I used this and always
    >received two equal strings.
    >
    >print "Same\n" if $string eq $string2;
    >
    >
    > When I got to the end of this reply I realized that
    >I was using ActiveState 5.8.3. perl582delta and
    >perldelta don't specify a change in core for unicode.
    >You might try looking at the ordinal values of both
    >strings.
    >
    >print ord $_ foreach split //, $string;
    >print "\n";
    >print ord $_ foreach split //, $string2;
    >
    > If they are the same, capture the terminal output
    >and see if something has changed in the ordinal values
    >after they were sent to the terminal.

    Thanks for your suggestions. It turned out to be not a terminal, but an HTML::Entities issue: decode_entities returns an iso-8859-1 encoded string, and my terminal is set to expect utf-8. Now I'll use Unicode::String to get the converted string in UTF-8.

    - Jan

    -- 
    Hanlon's Razor: Never attribute to malice that which can be adequately explained by stupidity.
    

  • Next message: reader_at_newsguy.com: "file renaming util in perl"

    Relevant Pages

    • RE: Script that spans multiple files
      ... : Charles K. Clarkson wrote: ... use lib '.'; # Point to the path of your other files. ... variables you have in your script. ...
      (perl.beginners)
    • RE: uninitialized value error
      ... : Charles K. Clarkson wrote: ... print LOG "named vsz reached over 60mb, ... close PSO; ...
      (perl.beginners)
    • Re: using local when appropriate
      ... On 09/29/2006 01:28 PM, Charles K. Clarkson wrote: ... : sub getfile { ... : my $filename = shift; ...
      (perl.beginners)
    • RE: Unable to use XML module
      ... Try install XML-Simple ... Charles K. Clarkson; Xavier Noria ... Subject: RE: Unable to use XML module ...
      (perl.beginners)
    • Re: lwp-download
      ... On Friday 25 February 2005 15:24, Charles K. Clarkson wrote: ... I have a perl program that I have developed that stores some ... External commands should be a last resort unless you ...
      (perl.beginners)

    Loading