[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-xml
Subject:    : How to print the right caracters?
From:       "Duncan Cameron" <duncan_cameron2002 () yahoo ! co ! uk>
Date:       2004-05-12 10:42:08
Message-ID: 200405121042.i4CAgU77216326 () d06nrmr1307 ! portsmouth ! uk ! ibm ! com
[Download RAW message or body]

>> Ok, I have this problem too. Can you  write  an example?
>> In other words, how I encode a iso-8859-1 content to utf-8 ?
>> Thanks
>> Bye

See the Encode module. Something like:

my $string = decode("iso-8859-1", $octets);

where $octets is the data that you have read from a file or database. 
You can then use $string as data to be added to a DOM tree or whatever.

Regards
Duncan Cameron


_______________________________________________
Perl-XML mailing list
Perl-XML@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic