Jump to content

Trouble with non-standard characters


markslade

Recommended Posts

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

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

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

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
Pah. 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...