【发布时间】:2017-09-22 09:30:26
【问题描述】:
我有一些 UTF-8 BOM 编码的 js 文件。我想使用 ant 将这些文件转换为 UTF-8 编码。我为此使用了copy ant 的任务
<copy todir="./custom_plugins" overwrite="true" outputencoding="UTF-8">
<fileset dir="../plugins" />
</copy>
现在,当我在记事本++ 中打开UTF-8 BOM 中的文件时,它会以ANSI 格式显示其编码,但这也会在文件开头附加 字符。
即使我尝试过this,但还是不行。 我该如何解决这个问题?
【问题讨论】:
标签: encoding utf-8 ant byte-order-mark