且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

FreeMarker无法显示汉字

更新时间:2023-01-30 21:29:32

您需要更改.ftl模板文件的文件编码,方法是将它们保存在IDE或记事本中,然后在保存对话框中更改其编码. 保存对话框底部应有一个编码"下拉菜单.

You need to change your file encoding of your .ftl template files by saving over them in your IDE or notepad, and changing the encoding in the save dialog. There should be an Encoding dropdown at the bottom of the save dialog.