Type: Technical Task
Affects Version/s: None
There is 1 failure in Portlet 3.0 TCK test V2AddlResponseTests:
Test case V2AddlResponseTests_SPEC2_12_Resource_characterEncoding2: Details: The character encoding can be set via the setLocale method and a locale-encoding-mapping-list mapping in the web.xml deployment descriptor. Failed because character encoding is not "iso-8859-16" but UTF-8
According to Portlet Spec 3.0, Ch 15.7.1,
The portlet can set the character encoding for a resource response in several ways:
- Using the setCharacterEncoding method.
- Using the setContentType method. Calls to setContentType set the character encoding only if the given content type string provides a value for the charset attribute.
- Using the setLocale method and a locale-encoding-mapping-list mapping in the web.xml deployment descriptor. Calls to setLocale set the character encoding only if neither the setCharacterEncoding nor the setContentType method has previously set the character encoding.
In Liferay, the locale-encoding-mapping-list mapping in the web.xml deployment descriptor is not read. And in the setLocale method, the related code for setting character encoding is not implemented.