[
https://issues.apache.org/jira/browse/OFBIZ-5472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rong Nguyen updated OFBIZ-5472:
-------------------------------
Description:
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>
(even when i <style> tag)
- In Vietnamese: testlbl = Giá trị
in client, it was decoded to:
<div>
Giá trị
</div>
<script type="text/javascript">
Giá ; trị ;
</script>
was:
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>
(even when i <style> tag)
- In Vietnamese: testlbl = Giá trị
in client, it was decoded to:
<div>
Giá trị
</div>
<script type="text/javascript">
Giá trị
</script>
> 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>
> (even when i <style> tag)
> - In Vietnamese: testlbl = Giá trị
> in client, it was decoded to:
> <div>
> Giá trị
> </div>
> <script type="text/javascript">
> Giá ; trị ;
> </script>
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)