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