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?

Thanks.

Bye, Helma

> -----Original Message-----
> From: Simon H�rlimann [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, 04 January 2004 21:55
> To: [EMAIL PROTECTED]
> Subject: RE: Sudden difference in interpretation of #160 - update
> 
> 
> HiOn Sun, 2004-01-04 at 21:23, [EMAIL PROTECTED] wrote:
> > Hi, Helma
> > 
> > > I use   as nbsp entity. This worked. I don't really know 
> > > what happened, but now a capital A with a ^ (decimal code 194) 
> > > is displayed instead of a space.
> >  
> > I traced the problem back to serialize type="html" vs "xhtml". 
> > The latter shows the A. Can anybody explain why and what to use 
> > for   in xhtml?
> Just a wild guess: as XHTML is XML, it uses UTF-8 as the default
> encoding. HTML uses latin-1 or something. So you either need to put
> something like
> <?xml version="1.0" encoding="iso-8859-1"?>
> at the beginning of you XHTML file.
> Or lookup the UTF-8 character code for &nbsp;
> 
> Simon
> 
> > Bye, Helma
> > Anybody have any idea?
> > > 
> > > Bye, Helma
> > > 
> > > 
> ---------------------------------------------------------------------
> > > 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]
> > 
> 
> 
> ---------------------------------------------------------------------
> 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]


Reply via email to