[
https://issues.apache.org/struts/browse/STR-3007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40263
]
Paul Benedict commented on STR-3007:
------------------------------------
While it's possible to automatically escape characters, it's probably unwise
because it balloons the response size. This would be terrible for I18N sites.
Instead, you need to set your content type to UTF-8 which will solve the
problem.
> 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 = "€";
> break;
> case'\u20AC':
> filtered = "€";
> 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.