Thanks for the reply.
Interesting the XML does claim to be UTF-8, here is the first element in the file.
<?xml version="1.0" encoding="UTF-8"?>
<OFFERS>
<OFFER>
<OUR_ID>2752</OUR_ID>
<FTA>PTHREE81200013</FTA>
<MERCHANTCATEGORY>LG</MERCHANTCATEGORY>
<NAME>LG U8120</NAME>
<BRAND>LG</BRAND>
<MODEL>U8120</MODEL>
<PROMOTIONTEXT>Only 15.00 Per Month!</PROMOTIONTEXT>
<DESCRIPTION>This latest video phone has stylish looks, rotating video
+ camera and photo address book. With a range of revolutionary feature
+s, the LG 8120 is <b> 'the'</b> video mobile to be seen w
+ith.</DESCRIPTION>
<NETWORK>Three</NETWORK>
<RENTAL>15.00</RENTAL>
<FREE_OFF_PEAK_MINS>0</FREE_OFF_PEAK_MINS>
<FREE_CN_MINS>500</FREE_CN_MINS>
<FREE_ANYTIME_MINS>0</FREE_ANYTIME_MINS>
<FREE_SMS>100</FREE_SMS>
<TAR>Talk & Text 600 Special</TAR>
<ADDINFO> FREE Promo 12 Months Half Price Line Rental, 3 Months FREE i
+nsurance and <b>12 Months Reduced Line Rental - Only GBP15 Per Month<
+/b> </ADDINFO>
<DEEPLINK>http://www3.fonetasticmobile.co.uk/1/showphones.php?item=275
+2</DEEPLINK>
<SMALLIMAGE>http://www3.fonetasticmobile.co.uk/img/phones/bestdeal_u81
+20.jpg</SMALLIMAGE>
<BIGIMAGE>http://www3.fonetasticmobile.co.uk/img/phones/big_u8120.jpg<
+/BIGIMAGE>
<PRICE>0</PRICE>
</OFFER>
</OFFERS>
I suspect the feed is just not as good as it should be.
I have actually got around the problem by processing the file manually beforing loading it up with XML::Parser, and removing the dodgy characters.
Thanks, Tom.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|