You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Abbas Mousavi <ab...@yahoo.com> on 2006/05/20 16:56:14 UTC

Jtidy ,html Transformer, forms

Hi, 

I have some problem concerning JTidy. I read some UTF-8 data from a  WYSIWIG
javascript editor through the request generator to my pipeline.

then I want to use HTMLTransformer to convert this string into xml. but the output displays ? in place of non latin character.

I have tested both 
org.apache.cocoon.transformation.HTMLTransformer
and the neko transformer.

I have set the form encoding in web.xml to UTF-8 also I have set encoding in Jtity.properties to utf-8. 

I have tested another way for converting to xml (using"xml:" prefix in form elemet name) but this method causes a saxparsin exeption when the input contains entities like nbsp,

what can I do?

thanks

		
---------------------------------
Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.

Re: Jtidy ,html Transformer, forms

Posted by Antonio Gallardo <ag...@agssa.net>.
Abbas Mousavi escribió:
> I have tested another way for converting to xml (using"xml:" prefix in 
> form elemet name) but this method causes a saxparsin exeption when the 
> input contains entities like nbsp,
That is correct because xml spec. does not define nbsp.

Best Regards,

Antonio Gallardo.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Jtidy ,html Transformer, forms

Posted by Jonas Lundberg <my...@gmail.com>.
Are you sure that the data you read is actually encoded in UTF-8?

Regards
Hans

On 5/20/06, Abbas Mousavi <ab...@yahoo.com> wrote:
> Hi,
>
> I have some problem concerning JTidy. I read some UTF-8 data from a  WYSIWIG
> javascript editor through the request generator to my pipeline.
>
> then I want to use HTMLTransformer to convert this string into xml. but the
> output displays ? in place of non latin character.
>
> I have tested both
> org.apache.cocoon.transformation.HTMLTransformer
> and the neko transformer.
>
> I have set the form encoding in web.xml to UTF-8 also I have set encoding in
> Jtity.properties to utf-8.
>
> I have tested another way for converting to xml (using"xml:" prefix in form
> elemet name) but this method causes a saxparsin exeption when the input
> contains entities like nbsp,
>
> what can I do?
>
> thanks
>
>
>  ________________________________
> Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo!
> Messenger with Voice.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org