我用的服务器是weblogic
在velocity.properties中这么设置,输出的中文还是乱码啊
input.encoding = gb2312
output.encoding = gb2312
file.resource.loader.path = templates
但是在tomcat下运行是显示中文是正确的
并求velocity.properties设置的详细说明,多谢
1 jdbc driver encoding
2 javac encoding
3 output.encoding
只是很简单的显示中文啊
----------------------------------------
模板文件
num1.vm:
Hi! This $name from the $project project.
中文秋高气爽
输出文件
output.txt:
Hi! This one from the other project.
????????????
猜你喜欢
本站原创《复杂软件设计之道:领域驱动设计全面解析与实战》