You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kristopher Brown <Kr...@diagonal-solutions.co.uk> on 2002/05/13 16:46:35 UTC

RequestUtils.filter and Euro currency symbol

Hi,
 
I have been trying to ouput a Euro currency symbol in an html:text tag, but the value attribute just contained the ? character.  I followed the code through to the RequestUtils.filter method where I noticed that only <, >, ", and & are encoded.  I modified the code so that it also checks for \u20ac and replaces it with &#8364; which then worked.
 
Is it a bug that the RequestUtils.filter method does not suitably encode high end unicode characters?  Could/should the code be modified to encode any character above a given threshold?
 
Has anyone else had any problems like this and what was the outcome?
 
Cheers,
 
Kris.

Re: RequestUtils.filter and Euro currency symbol

Posted by Adam Hardy <ad...@cyberspaceroad.com>.
Isn't the problem more likely to lie with the browser and the source 
code viewer you are using?


Kristopher Brown wrote:

>Hi,
> 
>I have been trying to ouput a Euro currency symbol in an html:text tag, but the value attribute just contained the ? character.  I followed the code through to the RequestUtils.filter method where I noticed that only <, >, ", and & are encoded.  I modified the code so that it also checks for \u20ac and replaces it with &#8364; which then worked.
> 
>Is it a bug that the RequestUtils.filter method does not suitably encode high end unicode characters?  Could/should the code be modified to encode any character above a given threshold?
> 
>Has anyone else had any problems like this and what was the outcome?
> 
>Cheers,
> 
>Kris.
>
>  
>



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