Skip to content

Commit

Permalink
Changing encoding in servlet for I18nTest.testShouldBeAbleToReturnThe…
Browse files Browse the repository at this point in the history
…TextInAPage
  • Loading branch information
jimevans committed Dec 11, 2013
1 parent e4db0fc commit 15a0ee4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response)

response.setContentType("text/html");
// Data should be transferred using UTF-8. Pick a different encoding
response.setCharacterEncoding("UTF-16");
response.setCharacterEncoding("UTF-16LE");

StringBuilder text = new StringBuilder("<html><title>Character encoding (UTF 16)</title>")
.append("<body><p id='text'>")
Expand Down

0 comments on commit 15a0ee4

Please sign in to comment.