Re: character Encoding in perl
- From: prabu.ayyappan@xxxxxxxxx (Prabu Ayyappan)
- Date: Tue, 3 Jul 2007 07:34:18 -0700 (PDT)
Its not even being displayed in by browser.The UTF-8 Character i meant is the square characters in the Link
http://www.tony-franks.co.uk/UTF-8.htm
Prabu Ayyappan <prabu.ayyappan@xxxxxxxxx> wrote:
Hi,
I am using XML::Simple for converting the XML into a hash.
use Unicode::String qw(utf8);
use XML::Simple;
#use Data::Dumper;
$XML = "äT©imes";
$u = utf8($XML);
$XML = $u->utf8;
$myHash = XMLin($XML);
#print Dumper($myHash);
The above code works fine...
But the problem is when i used the Input string as
äT©imes
There is a character which makes the parser to threw an error.
not well-formed (invalid token) at line 1, column 12, byte 12 at D:/Perl/lib/XML
/Parser.pm line 187
How to encode these characters().I found this character as an utf-8 character from the below link
http://www.tony-franks.co.uk/UTF-8.htm
if it is something other than UTF-8 then how to encode it.
Thanks in advance,
Prabu.M.A
---------------------------------
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.
---------------------------------
Got a little couch potato?
Check out fun summer activities for kids.
- References:
- character Encoding in perl
- From: Prabu Ayyappan
- character Encoding in perl
- Prev by Date: character Encoding in perl
- Next by Date: Re: Controlling the Device Manager with Perl?
- Previous by thread: character Encoding in perl
- Next by thread: formatting a string
- Index(es):
Relevant Pages
|