Fixes issue 21649: Chinese characters are shown properly in linked items
authorAugusto Mauch <augusto.mauch@openbravo.com>
Fri, 14 Sep 2012 13:09:26 +0200
changeset 17956 245c366769f7
parent 17955 59a32d16a80f
child 17957 357149849277
Fixes issue 21649: Chinese characters are shown properly in linked items

The encoding used at that point was ISO_8859-1, which did not allow chinese characters. It has been changed to UTF-8.
src/org/openbravo/erpCommon/utility/ReferencedLink.java
--- a/src/org/openbravo/erpCommon/utility/ReferencedLink.java	Fri Jun 15 12:27:54 2012 +0200
+++ b/src/org/openbravo/erpCommon/utility/ReferencedLink.java	Fri Sep 14 13:09:26 2012 +0200
@@ -74,6 +74,7 @@
       response.sendRedirect(servletURL.toString());
 
     } else if (vars.commandIn("JSON")) {
+      response.setCharacterEncoding("UTF-8");
       response.setContentType("application/json");
       PrintWriter out = response.getWriter();
       out.print(getJSON(vars));