users@servlet-spec.java.net

[servlet-spec users] [jsr369-experts] return of ServletContext#getRequestCharacterEncoding, #getResponseCharacterEncoding

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Wed, 1 Mar 2017 16:43:48 -0800

In the following, we will consider the case where the encoding is not specified.

In ServletRequest#getCharacterEncoding, it returns null.
In ServletResponse#getCharacterEncoding, it returns ISO-8859-1.

I plan to keep the same behaviors in ServletContext API as follows:
        ServletContext#getRequestCharacterEncoding, it returns null
        ServletContext#getResponseCharacterEncoding, it returns ISO-8859-1

If there is any comment, please let me know.
Thanks.
      Shing Wai Chan