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.
当我将新提要的编码指定为 UTF-8(与我的源匹配)时,我的输出提要没有用于 emdash 和弯引号的编码。如果我指定 ISO-8859-1 进行编码(但我不想这样做),则会对字符进行编码。如何强制它为 UTF-8 编码?
我在尝试在 Java Servlet 中生成 RSS 提要时遇到了一些问题。只需确保响应内容编码等于提要输出的编码。
feed.setEncoding("UTF-8"); response.setCharacterEncoding("UTF-8");