[ 
https://issues.apache.org/struts/browse/STR-3007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40572
 ] 

Henri Yandell commented on STR-3007:
------------------------------------

The following works somewhat for me:

<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%
String test = "The currency in Europe is \u0080 or \u20AC and not \u20A0.";
%>
Hello. <%= test %> 

The prolbem is that \u0080 will work happily for me by default (it's the 
Microsoft codepage location, but I'm on a Mac so there must be some level of 
commonality) and if I set UTF-8 then the \u20AC will work.

So you need to be on UTF-8 AND you need to not use the \u0080 variant. 

> Error in converting euro symbol
> -------------------------------
>
>                 Key: STR-3007
>                 URL: https://issues.apache.org/struts/browse/STR-3007
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0 Final, 1.0.1, 1.0.1 Final, 1.0.2, 1.1.1, 1.2.2, 
> 1.2.4, 1.2.6 Beta, 1.2.7, 1.2.8, 1.2.9, 1.3.5, 1.3.6
>         Environment: WinXP sp2, Tomcat 5.0.28, java 1.5.10
>            Reporter: Jacopo Dell'Anno
>            Priority: Minor
>
> in "xxx" I have a string containing € euro symbol.
> If I use <html:text property="xxx"> to write the value of xxx in a text form 
> field I get '?' instead of € euro symbol.
> According to my opinion it's up to 
> org.apache.struts.util.ResponseUtils.filter()  to solve this problem adding 
> this lines of code to the list of cases:
>         case'\u0080':
>           filtered = "&euro;";
>           break;
>         case'\u20AC':
>           filtered = "&euro;";
>           break;
> What do you think about?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to