Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Perl code for XML/HTML entities:

by mirod (Canon)
on Jul 18, 2013 at 15:36 UTC ( #1045125=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl code for XML/HTML entities:
in thread Perl code for XML/HTML entities:

This is most likely an encoding problem.

Find out which encoding the data is in, and either declare the encoding at the top of the XML file using an XML declaration, or convert the data to UTF-8 before feeding it to the parser.

If you're in the US/UK, the encoding is probably ISO-8859-1 (or ISO-8859-15 if the data includes the euro symbol).

Replies are listed 'Best First'.
Re^4: Perl code for XML/HTML entities:
by Narend (Initiate) on Jul 18, 2013 at 16:20 UTC
    Thanks mirod, for pointing out. Yes, I did use the xml feed encoding as <?xml version="1.0" encoding="ISO-8859-1"?>. That throws interesting challenge. [XxXXXxx® II xxxxxx xxxxxxxxxx xxx but fails for XxXXXxx® 77 xxxxxx xxxxxxxxxx xxx So if there are numbers after the symbol it does not recognize now. If it is chars, seems to understand that. Any further pointers pls ?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045125]
help
Chatterbox?
[stevieb]: Hey ww. Just laying down watching a hockey game, running my auto build distribution that automates Strawberry installs to figure out which ones had csum changes so berrybrew doesn't barf on those ones
[stevieb]: ...and closing some issues on some of my other dists

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2017-03-30 02:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (353 votes). Check out past polls.