in reply to Internal special char differ from output special char

Hrmm... that's odd. Could it be the font you're using is not unicode but ISO-somethingortheother. (And windows has some even funkier character sets.) You can display the mapping tables like this:

#!/usr/bin/perl -w use strict; use HTML::Entities qw(%char2entity %entity2char); foreach (keys %char2entity) { print "$_ = $char2entity{$_}\n"; } foreach (keys %entity2char) { print "$_ = $entity2char{$_}\n"; }

On my Linux box everything seems to have the right values.

Update: s/HTML:Entities/HTML::Entities/;

Replies are listed 'Best First'.
Re: Re: Internal special char differ from output special char
by Mandor (Pilgrim) on Dec 10, 2001 at 00:51 UTC
    The mapping table seems to be ok (I looked into Entities.pm manually since your code above doesn't seem to work for me - doesn't print out anything even when I corrected HTML:Entities to HTML::Entities).
    I also checked the char mapping table under Windows and my systemfont seems to be unicode.

    I am thankful for any further ideas.

      mandor, why don't you post some of your code. That might give us a clue as to what could be going wrong. Also give the version number of perl and HTML::Entities in case that makes a difference.