/utf8output (Visual Basic)

使用 UTF-8 编码显示编译器输出。

/utf8output[+ | -]

参数

  • + | -
    可选。 该选项的默认设置为 /utf8output-,它表示编译器输出不使用 UTF-8 编码。 指定 /utf8output 与指定 /utf8output+ 的作用相同。

备注

在某些国际配置中,编译器输出无法在控制台上正确显示。 在这种情况下,请使用 /utf8output 并将编译器输出重定向到一个文件中。

备注

/utf8output 选项不能在 Visual Studio 开发环境中使用;它仅在从命令行进行编译时可用。

示例

下面的代码编译 In.vb 并指示编译器使用 UTF-8 编码显示输出。

vbc /utf8output in.vb

请参见

参考

示例编译命令行 (Visual Basic)

其他资源

Visual Basic 命令行编译器