You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lisa van Gelder <li...@wirestation.co.uk> on 2000/08/11 19:46:29 UTC

random character

Hello cocoon peeps.

I've got a stylesheet that converts html - xml which is producing an odd
character: &#194; When cocoon meets this character it starts giving me
errors about not closing tags properly.

1) why does &#194; cause errors? It is a numeric entity, and I thought
cocoon could cope with those.

2) where does &#194; come from?

I think it has something to do with &nbsp;  My html file is run through HTML
Tidy which converts all &nbsp; to its numeric equivalent, &#160;  The html
file is then run through a stylesheet to convert it into xml.

But in front of every &#160; in my xml file there is a &#194;

example:

<p>&#160;</p> <--- html tidy output

becomes <p>&#194;&#160;</p> <!-- final xml output

Has anybody else run into this, and how have they dealt with it?

Any suggestions?

thanks

Lisa



Re: random character

Posted by sudhi <su...@insage.com>.
Whats the encoding u have ?
Try changing it to ISO-8859-1.


Berin Loritsch wrote:
> 
> Lisa van Gelder wrote:
> >
> > Hello cocoon peeps.
> >
> > I've got a stylesheet that converts html - xml which is producing an odd
> > character: &#194; When cocoon meets this character it starts giving me
> > errors about not closing tags properly.
> >
> > 1) why does &#194; cause errors? It is a numeric entity, and I thought
> > cocoon could cope with those.
> >
> > 2) where does &#194; come from?
> >
> > I think it has something to do with &nbsp;  My html file is run through HTML
> > Tidy which converts all &nbsp; to its numeric equivalent, &#160;  The html
> > file is then run through a stylesheet to convert it into xml.
> >
> > But in front of every &#160; in my xml file there is a &#194;
> >
> > example:
> >
> > <p>&#160;</p> <--- html tidy output
> >
> > becomes <p>&#194;&#160;</p> <!-- final xml output
> >
> > Has anybody else run into this, and how have they dealt with it?
> 
> &#194; is a capital 'A' with an carret '^' on top.  Why it is converting
> it in that manner, I don't know.
> 
> I am familiar with automatic conversion of ampersands('&'), and the open and
> close carets ('<' and '>').
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

Re: random character

Posted by Berin Loritsch <bl...@infoplanning.com>.
Lisa van Gelder wrote:
> 
> Hello cocoon peeps.
> 
> I've got a stylesheet that converts html - xml which is producing an odd
> character: &#194; When cocoon meets this character it starts giving me
> errors about not closing tags properly.
> 
> 1) why does &#194; cause errors? It is a numeric entity, and I thought
> cocoon could cope with those.
> 
> 2) where does &#194; come from?
> 
> I think it has something to do with &nbsp;  My html file is run through HTML
> Tidy which converts all &nbsp; to its numeric equivalent, &#160;  The html
> file is then run through a stylesheet to convert it into xml.
> 
> But in front of every &#160; in my xml file there is a &#194;
> 
> example:
> 
> <p>&#160;</p> <--- html tidy output
> 
> becomes <p>&#194;&#160;</p> <!-- final xml output
> 
> Has anybody else run into this, and how have they dealt with it?

&#194; is a capital 'A' with an carret '^' on top.  Why it is converting
it in that manner, I don't know.

I am familiar with automatic conversion of ampersands('&'), and the open and
close carets ('<' and '>').