Skip to content

Commit

Permalink
assume UTF-8 in the absence of a charset header
Browse files Browse the repository at this point in the history
This violates the servlet spec but is a safer default than ISO-8859-1
  • Loading branch information
robfletcher committed Sep 25, 2012
1 parent 5339ae2 commit 34cb4aa
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -27,7 +27,7 @@ import static org.apache.http.HttpHeaders.CONTENT_TYPE
abstract class AbstractMessage implements Message {

public static final String DEFAULT_CONTENT_TYPE = 'application/octet-stream'
public static final String DEFAULT_CHARSET = 'ISO-8859-1'
public static final String DEFAULT_CHARSET = 'UTF-8'
public static final String DEFAULT_ENCODING = 'none'

String getContentType() {
Expand Down

0 comments on commit 34cb4aa

Please sign in to comment.