Hi, OFBiz use HtmlEncoder: public static class HtmlEncoder implements SimpleEncoder { public String encode(String original) { return StringUtil.defaultWebEncoder.encodeForHTMLAttribute(original); } }
and before return to client side, every String is processed by using: StringUtil.htmlEncoder.encode(<String is here>); The issue is the encoder encode every unicode character, for example: The string: "Quản trị" will be encoded as “Quản trị ” The browser display fine but javascript will know as “Q uản trị ” We can use StringUtil.wrapString but OFBiz have a lot of services,ftl... to update Is there anyway to solve this issue? What happen if we replace "return StringUtil.defaultWebEncoder.encodeForHTMLAttribute(original);" by "return original" ?