Internationalization (i18n) Java

・Double or more byte language charcter code outpu

Servlet response sometimes are garblied when output double or more byte language charcter code like this:

???1?2???????????????????

In this case, these garblied letter were solved by changing following code

From

response.setContentType(“text/html;”);

To

response.setContentType(“text/html; charset=UTF-8”);

About: wpadmin


Leave a Reply

Translate »