markslade Posted August 10, 2007 Share Posted August 10, 2007 Hello all.I'm still plugging away at my website and have encountered a new hurdles. If I try to translate to entities such as (nbsp), they show up on the other end as "mystery characters"... by this I mean a ? in Firefox, an empty box in IE. I'm not sure why this is, but it happens with nbsp, the copyright symbol, é, and a few others that I've tried. Any ideas? Link to comment Share on other sites More sharing options...
boen_robot Posted August 10, 2007 Share Posted August 10, 2007 Use their numeric equivalents i.e. & nbsp; is & #160;.XML doesn't have named entities built in, other then & lt;, & gt; and & amp;, and XSLT is an XML file, so when it contains that, it's treated as an invalid one. Link to comment Share on other sites More sharing options...
markslade Posted August 10, 2007 Author Share Posted August 10, 2007 Use their numeric equivalents i.e. & nbsp; is & #160;.XML doesn't have named entities built in, other then & lt;, & gt; and & amp;, and XSLT is an XML file, so when it contains that, it's treated as an invalid one.boen_robot,Thanks, but that's actually what I did. It didn't come through in my original post because I didn't escape it, but I used & #160; for nbsp, and similar codes for others. It's not giving me an error about unknown entities (which it does if I use one such as & nbsp;) but the end result is an unknown character to Firefox and IE. I'm still stumped =/Mark Link to comment Share on other sites More sharing options...
markslade Posted August 10, 2007 Author Share Posted August 10, 2007 boen_robot,Thanks, but that's actually what I did. It didn't come through in my original post because I didn't escape it, but I used & #160; for nbsp, and similar codes for others. It's not giving me an error about unknown entities (which it does if I use one such as & nbsp;) but the end result is an unknown character to Firefox and IE. I'm still stumped =/MarkPah. Disregard my ignorance. This was a PHP problem after all... the encoding was defaulted to UTF-8 instead of ISO-8859-1. Problem solved Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.