Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道为什么 portlet 需要更改字符编码?如果它包含在页面中,则该页面应该已经具有字符编码。当portlet 使用不同的portlet 时,我看不到浏览器应该做什么。
追问:为什么portlet 2.0 api在字符编码方面自相矛盾?有一个地方说不允许 portlet 更改字符编码,但稍后它会告诉您如何更改。
我认为规范并没有说您可以更改 portlet 的字符编码。
2.0 规范的第12.7.1 节设置响应字符集说可以更改 ResourceResponse 的编码。但这与更改 portlet 编码不同,因为资源响应是独立于包含 portlet 的页面发送的。