Thursday, November 27, 2014

Bluemix troubleshooting -> Double-byte characters are not displayed properly when Liberty applications are pushed to Bluemix

Double-byte characters might not be displayed properly if Unicode support is not configured properly for the servlet or JSP files.

When a Liberty application is pushed to the Bluemix, the double-byte characters that are specified within the application are not displayed properly.
The problem might occur if Unicode support is not configured properly for the servlet or JSP files.
You can use the following code within your servlet or JSP file:
  • In the servlet source file
    response.setContentType("text/html; charset=UTF-8");
  • In the JSP
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

No comments:

Post a Comment