1

I have the following code in XSL:

<xsl:value-of select="./state" />&#160;<xsl:value-of select="./zip" /><br />

It now produces the following:

enter image description here

Not quire sure what is going on here and how to remove the weird character. I think its a character entity for a space? I really am new to xsl and what to do. any help appreciated

somejkuser
  • 8,856
  • 20
  • 64
  • 130
  • 2
    ` ` is the numeric version of ` `. since you're getting `Â` instead, you've probably got a charadter set mismatch somewhere. Note that core xml doesn't undestand html entities at all, so ` ` isn't valid xml. – Marc B Nov 24 '15 at 21:49
  • @MarcB i dont really have vast experience with character set mismatching. I tried changing the line delimiters to unix in eclipse. How do I get the content onto a new file that isnt corrupt – somejkuser Nov 25 '15 at 00:34
  • @jkushner : Your XSL file probably isn't corrupt; it may be that the tool which is serving your rendered file is not outputting in the correct encoding. Unless there is good reason, one should use "UTF-8" consistently. – Brett Zamir Mar 18 '16 at 06:05

0 Answers0