I don't understand the previous two replies, since character 160 has the same meaning in Latin-1 as it does in Unicode. Namely, none. That is a C1 control code with no defined meaning.

In the Windows 1252 character set, the C1 zone has extra characters in it, making it a super-set of Latin 1. I guess 160 (0xA0) is the non-breaking space character.

So, the code appears to be converting from a character set where 0xa0 means A-hat, which is 194 in Latin-1.

Hmm, perhaps the resulting UTF-8 is being treated as two characters later. A0 will be encoded as C3 80, which if re-displayed as Windows 1252 is A-tilde then the wanted non-breaking space. If your note was a typo (tilde instead of angle hat), that's what's happening.


In reply to Re: libXSLT and   by John M. Dlugosz
in thread libXSLT and   by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.