You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2014/01/10 17:54:54 UTC
[jira] [Commented] (OFBIZ-5472) Freemarker decode UTF-8 in script
and style tag
[ https://issues.apache.org/jira/browse/OFBIZ-5472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13867990#comment-13867990 ]
Jacques Le Roux commented on OFBIZ-5472:
----------------------------------------
Did you try to enclose your strings in StringUtil.wrapString(...)?
If it's ok please close and rather ask questions on the user ML, thanks!
> Freemarker decode UTF-8 in script and style tag
> -----------------------------------------------
>
> Key: OFBIZ-5472
> URL: https://issues.apache.org/jira/browse/OFBIZ-5472
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: SVN trunk
> Environment: Linux
> Reporter: Rong Nguyen
>
> When label is English, everything work fine, but when i change to Vietnamese or France(if text contain unicode characters), freemarker will decode unicode characters to code that cause error to jquery.
> - For example, i have a label which used in:
> <div>
> ${uiLabelMap.testlbl}
> </div>
> <script type="text/javascript">
> ${uiLabelMap.testlbl}
> </script>
> (the same when i <style> tag)
> + When languge is Vietnamese, and testlbl = Giá trị
> in client, it was decoded to:
> <div>
> Giá trị
> </div>
> <script type="text/javascript">
> Giá ; trị ;
> </script>
> As you see, when label inside one html tag(not script and style), it will be ok, but it decode utf-8 character when html tag is style or script.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)