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.
有没有人在tomcat下的linux上成功运行dbsight?它在 Windows 上运行良好,在 linux 上但所有页面都吐出垃圾字符。该应用程序本身似乎可以正常部署。在 windows 和 linux 上,tomcat uri 编码都设置为 utf-8。
语言设置为 en_US.UTF-8
我注意到您还在 DBSight 网页上发布了这个问题 - 很好。那很聪明:)
您说您在环境和 server.xml 中将 $LANG 设置为“en_US.UTF-8”。那挺好的。请注意,Linux 区分大小写:变量必须拼写为“LANG”,而不是“lang”或“lAnG”或其他任何内容。
另一个问题可能是“LC_ALL” - 这可以覆盖“$LANG”的值:
http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fae19494_.htm
如果您仍然有问题,请指定哪种 Linux(Redhat Enterprise?Ubuntu?等)和版本(例如 Ubuntu Server 11.1)。