cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Romayev <roma...@yahoo.com>
Subject Re: Encoding problem
Date Wed, 18 Sep 2002 18:48:45 GMT

--- Vadim Gritsenko <vadim.gritsenko@verizon.net>
wrote:
> Alex Romayev wrote:
> 
> >--- Vadim Gritsenko <vadim.gritsenko@verizon.net>
> >wrote:
> >  
> >
> >>Alex Romayev wrote:
> >>
> >>    
> >>
> >>>--- Vadim Gritsenko <vadim.gritsenko@verizon.net>
> >>>wrote:
> >>> 
> >>>
> >>>      
> >>>
> >>>>Alex Romayev wrote:
> >>>>
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>>>Let me be more specific and also simplify the
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
> >>>>example:
> >>>>   
> >>>>
> >>>>...
> >>>>
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>>>Does not work:
> >>>>>
> >>>>><xsl:param name="city" select="'Дели'"/>
> >>>>>
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
> >>>>Are these funny characters above in UTF-8? Does
> >>>>        
> >>>>
> >>your
> >>    
> >>
> >>>>XSL has 
> >>>>encoding="UTF-8" on the top?
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>Yes.  Also, note that this only happens to the
> href
> >>>attribute, the value of the <a> element comes out
> >>>correctly.
> >>>
> >>>      
> >>>
> >>Then what do you want? It works correctly. See 
> >>http://www.w3.org/Addressing/rfc1738.txt
> >>
> >>Vadim
> >>    
> >>
> >
> >Good point, I may have a problem in another
> stylesheet
> >(part of the pipeline that responds to the url in
> >question):
> >
> >This parameter is set by the href:
> ><xsl:param name="city"/>
> >
> >This should match and does it correctly when
> 'Delhi'
> >is passed, but does not match when I pass 'Дели':
> >
> ><xsl:apply-templates select="//city[name=$city]/>
> >
> 
> Check what encoding is used to decode URL. It should
> be container 
> encoding, but you need UTF-8.

I'm using tomcat4.0.4, do you know how to change it of
the top of your head?


> 
> PS In any case, non US-ASCII symbols in URL is not a
> good idea.

What would be an alternative?  Basically, I need to
search agains an XML file, which has city as one of
the elements, and return all records related to the
sity.  On the page, there is a list of 'favourite
city' links.

Also, I'm about to try recording information using
Cocoon, so I haven't tried to use forms yet, but
wouldn't I run into the same problem? 

> 
> Vadim
> 
> 
> 
> >-Alex
> >
> >  
> >
> >>
> >>    
> >>
> >>>>>...
> >>>>>
> >>>>><a href="city-detail?city="$city"><xsl:value-of
> >>>>>select="$city"/></a>
> >>>>>
> >>>>>After transformation I get:
> >>>>><a
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
>
>>>href="city-detail?city=%D0%94%D0%B5%D0%BB%D0%B8">Дели</a>
> >>>      
> >>>
> >>>>   
> >>>>
> >>>>What's serializer configuration? Does it have
> >>>>        
> >>>>
> >>proper
> >>    
> >>
> >>>>encoding set?
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>I'm using the default, i.e., I haven't changed
> >>>anything since installation.
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >>>>Vadim
> >>>>
> >>>>
> >>>>
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>>>--- Alex Romayev <romayev@yahoo.com> wrote:
> >>>>>
> >>>>>
> >>>>>     
> >>>>>
> >>>>>          
> >>>>>
> >>>>>>Hello,
> >>>>>>
> >>>>>>I'm having what seems to be an encoding
> problem
> >>>>>>            
> >>>>>>
> >>--
> >>    
> >>
> >>>>>>not
> >>>>>>sure it's related to Cocoon, but... ;)
> >>>>>>
> >>>>>><xsl:for-each select="//city-name">
> >>>>>><a
> >>>>>>            
> >>>>>>
> >>href="city-detail?city-name={.}"><xsl:value-of
> >>    
> >>
> >>>>>>select="."/></a><br/>
> >>>>>></xsl:for-each>
> >>>>>>
> >>>>>>All my xml is UTF-8, it work in English, but
> not in
> >>>>>>
> >>>>>>Russian.  Any ideas?
> >>>>>>
> >>>>>>Thanks,
> >>>>>>-Alex      
> >>>>>>            
> >>>>>>
> 
> 
> 
> 
>
---------------------------------------------------------------------
> 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:    
> <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:  
> <cocoon-users-help@xml.apache.org>
> 


---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message