How to install JA Content-Type Google App Engine on UTF-8

It seems I cannot get the UTF-8 encoding to send in the response headers. I tried using this to no avail:

resp.setHeader("Content-Encoding", "utf-8"); 

Does anyone know when this error will be fixed or is there a workaround ?

Literature:

+6
java google-app-engine utf-8
source share
2 answers

Per link w3 , Content-Encoding is for things like gzip, deflate, compress - not for "how Unicode is encoded into the body." What do you need for example

 Content-Type: text/html; charset=utf-8 

ie, attribute charset Content-Type .

+7
source share

I added this line to the top of my jsp page (containing the form) and the error went away

 <%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> 
0
source share

All Articles