You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by si...@vmoksha.com on 2002/08/08 12:59:44 UTC

UTF-8

Hello All
I am doing the following
1) I have a Unicode database in PostgreSQl
2) I am inputting some data other than english in the database.
3) I am trying to retrieve the data back through cocoon2.0.3. AN d getting
the HTML as
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
But the data which was entered is coming like this
                                                   
 ्सs                                           
                                                   
 दीपन्क                                
                                                   



4) I am trying to do the same thing with JSP and am getting the data
correct on my page like this.Though the HTML in both the cases is same I
can not understand why the hell Browser is not interpreting my Unicode in
case of Cocoon.

I am getting in case of Jsp like this
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
Please help me as I am trapped in this for two days and am not getting what
is wrong with cocoon

Regards
Sidharth Ghai
Vmoksha Technologies
VI th Floor, Corporate Towers 'C'
Diamond District
Kodihally
Banglore

Re: UTF-8

Posted by Joerg Heinicke <jo...@gmx.de>.
This looks like a really exact error description now.

Something seems to go wrong with your cocoon processing. The charset is set 
to ISO-8859-1, but the output looks like UTF-8. If you save the HTML file 
locally, replace "ISO-8859-1" by "UTF-8" and view it again in a browser, are 
the characters shown correctly?

Regards,

Joerg

sidharthg@vmoksha.com wrote:
> Hello All
> I am doing the following
> 1) I have a Unicode database in PostgreSQl
> 2) I am inputting some data other than english in the database.
> 3) I am trying to retrieve the data back through cocoon2.0.3. AN d getting
> the HTML as
> <head>
> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> </head>
> But the data which was entered is coming like this
>                                                    
>  ्सs                                           
>                                                    
>  दीपन्क                                
>                                                    
> 
> 
> 
> 4) I am trying to do the same thing with JSP and am getting the data
> correct on my page like this.Though the HTML in both the cases is same I
> can not understand why the hell Browser is not interpreting my Unicode in
> case of Cocoon.
> 
> I am getting in case of Jsp like this
> <head>
> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> </head>
> Please help me as I am trapped in this for two days and am not getting what
> is wrong with cocoon
> 
> Regards
> Sidharth Ghai
> Vmoksha Technologies
> VI th Floor, Corporate Towers 'C'
> Diamond District
> Kodihally
> Banglore


-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: UTF-8

Posted by kavitha ramesh <ka...@yahoo.co.in>.
Hi Siddharth,

I had an XML file messages_zh.xml which has the
messages  in chinese.I opened a chinese text editor
and entered the text in chinese.My XML file looks
like:

<?xml version="1.0" encoding="GB2312"?>
<catalogue xml:lang="zh">
<message key="welcometext">
»¶Ó­ÄãʹÓÃÎÒÃǵķþÎñ£(this are chinese characters)
</message>
</catalogue>


And when I restarted the server my browser displayed
chinese message,,,

I dont know whether my example is useful for you,,,


Kavitha.






 --- sidharthg@vmoksha.com wrote: > Hello All
> I am doing the following
> 1) I have a Unicode database in PostgreSQl
> 2) I am inputting some data other than english in
> the database.
> 3) I am trying to retrieve the data back through
> cocoon2.0.3. AN d getting
> the HTML as
> <head>
> <META http-equiv="Content-Type" content="text/html;
> charset=ISO-8859-1">
> </head>
> But the data which was entered is coming like this
>                                                    
>  à ¥�à ¤¸s                                      
>     
>                                                    
>  à ¤¦à ¥�à ¤ªà ¤¨à ¥�à ¤�             
>                   
>                                                    
> 
> 
> 
> 4) I am trying to do the same thing with JSP and am
> getting the data
> correct on my page like this.Though the HTML in both
> the cases is same I
> can not understand why the hell Browser is not
> interpreting my Unicode in
> case of Cocoon.
> 
> I am getting in case of Jsp like this
> <head>
> <META http-equiv="Content-Type" content="text/html;
> charset=ISO-8859-1">
> </head>
> Please help me as I am trapped in this for two days
> and am not getting what
> is wrong with cocoon
> 
> Regards
> Sidharth Ghai
> Vmoksha Technologies
> VI th Floor, Corporate Towers 'C'
> Diamond District
> Kodihally
> Banglore 

________________________________________________________________________
Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
       visit http://in.autos.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>