[EMAIL PROTECTED] wrote:
Hi,
thanks. I've read the article, in fact I read the entire thread, but either New Year's wine is still in my system (I don't drink :-)) or I've stumbled onto a configuration problem/bug in <map:serialize type='xhtml'/>
Point is this: whether I enter   or   directly in my XSL
stylesheet or through an entity reference <!ENTITY nbsp " "> (or the hex code), when I tell the serializer to use
type xhtml I get an  instead of when I change the type back to
I take it you refer to  just to communicate here, and that it is not actually in the resulting file, right?
That would be the most interesting thing to see now: what actually is in that file (and not: what is showing up in the browser)
When the A with ^ shows up it often means the browser received UTF-8 but thinks it is iso-8859-1 any way... as it happens to be (no need to go into the depths of how the encoding works) some of the characters in utf-8 are encoded with more then one byte, in which case the leading byte is not uncommon to map to latin-1's A with something range (just so you recognise the disease)
could you check the encoding your browser is assuming? and check that with the page or http-headers were saying?
(possibly cross-test with another browser as well)
'html' it works as expected.
can be a number of reasons:
- I think by default html serializer is set to use iso-8859-1 as target encoding?
- I think the html serializer (from xalan) would be introducing the
in which case you are comparing apples to oranges...
regards, -marc=
Bye, Helma
-----Original Message-----
From: Martijn Bouterse [mailto:[EMAIL PROTECTED] Sent: Monday, 05 January 2004 00:02
To: [EMAIL PROTECTED]
Subject: Re: Sudden difference in interpretation of #160 - update
[EMAIL PROTECTED] wrote:
Hi,
Good guess, but unfortunately both ideas don't work. In
character entity
references xhtml is similar to html 4, so both use the same
code for nbsp
(#160). As far as I can deduct from all the information,
UTF-8 includes
Latin-1, which includes the code for nbsp.
So, in all encodings (ISO-8859-1 as well as UTF-8) the code
for nbsp is 160.
Any other ideas, guesses?
All things you wanted to know about nbsp:
http://www.biglist.com/lists/xsl-list/archives/200211/msg00276.html
Hope that helps,
Martijn Bouterse
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Marc Portier http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center Read my weblog at http://blogs.cocoondev.org/mpo/ [EMAIL PROTECTED] [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
