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.
在我的 Web 应用程序中,欧元 (€) 符号正在转换为问号 (?)。它是基于 Java 构建的。代码很好,但是当在 WAS 6.0 上部署 EAR 时,有时它可以正常工作,但有时会将 € 转换为 ?。
这与ASCII转换有关吗?如何解决这个问题?
提前致谢!
您应该对特殊字符进行 html 转义。例如:
€ = €
这样,您的 html 中总是有纯 ascii,而不必担心编码。