Re: newbie &nbsp representation question

Stanimir Stamenkov <[email protected]>
Newsgroups gmane.comp.web.amaya.general
Message-ID <[email protected]>
Mon, 3 Aug 2009 16:36:58 -0600, /J. Waldram/:

> Amaya 11.2, with the "Keep multiple 
> Spaces" option, the &nbsp is represented as a hex byte 0xa0 instead of 
> &#160; or &#xa0;.  Is this a mis-translation for the &nbsp that is 
> rendered by browsers?  Since XML does not allow &nbsp and the &#xa0 is 
> allowed could this be recoded as a text string not a hex byte?

It is not a "hex byte" but the NBSP character included literally in 
the text (if you choose UTF-8 or another UTF variant then the 
character will be represented by two or more bytes).  I guess it is 
included like that as it gets just one character in the source vs. 6 
(&nbsp; or &#160; or &#xA0;).  If you set your source encoding to 
US-ASCII then this character cannot be literally encoded therefore 
Amaya will write it as &nbsp;.

-- 
Stanimir
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.