English 中文(简体)
是否有可能在以 BOM 编码为 UTF-8 的文件中运行 SQLPLPLUS 脚本
原标题:Is it possible to run a SQLPLUS script on a file encoded as UTF-8 with BOM

我试图运行从大量来源自动生成的脚本集。 不幸的是,其中一些脚本是用 BOM 生成的UTF-8。 我有一个自动删除 BOM 的系统, 但程序有点混乱 。

未删除 BOM 生成错误:

SP2-0042: unknown command "" - rest of line ignored.

能否在一个有 BOM 的脚本文件中运行 SQLPLUS?

最佳回答

It is possible to run SQLPLUS with such script, but SQLPLUS will indicate an error on the first line because of BOM.
Probably you wanted to ask if you can avoid this error - it is not possible, AFAIK. Erwin thinks so too.

您可以用空第一行生成文件, 从而避免丢失任何信息。 然后您就可以忽略这个错误 。

问题回答

这已经是甲骨文的窃听器了6年多 但它看起来不像他们有兴趣修复它

他们建议(