在sqlplus中如何更改或特定文件编码为utf8
In sqlplus how to change or specific file encoding to utf8
在 sql 加上我创建了一个文件 :
>EDIT test.sql
文件编码为ansi。我想把它改成ut8,我用另存为试过,但没用
如何在 sql plus 中将 test.sql 从 ansi 更改为 utf8?
如果您想更改 sqlplus 的默认编辑器,您可以这样做:
- 登录到 sqlplus
使用"define"命令设置新编辑器的路径。我喜欢 TextPad(自动处理 utf8),所以命令(无论如何对我的机器)是:
定义_editor="c:\Program Files\TextPad 7\TextPad.exe";
现在,编辑命令将调出新的编辑器。
对于 TextPad,您可以通过执行以下操作更改编码:
Conversion: Conversion between various file formats and encodings can
be made using the Save As command on the File menu. The options for
encoding are ANSI, DOS, Unicode, Unicode (big endian) and UTF-8.
所以在完成上述步骤后,edit 将调出 Textpad,使用另存为可以使用各种编码保存文件。
这是从记事本更改默认编辑器的好处之一。
在 sql 加上我创建了一个文件 :
>EDIT test.sql
文件编码为ansi。我想把它改成ut8,我用另存为试过,但没用
如何在 sql plus 中将 test.sql 从 ansi 更改为 utf8?
如果您想更改 sqlplus 的默认编辑器,您可以这样做:
- 登录到 sqlplus
使用"define"命令设置新编辑器的路径。我喜欢 TextPad(自动处理 utf8),所以命令(无论如何对我的机器)是:
定义_editor="c:\Program Files\TextPad 7\TextPad.exe";
现在,编辑命令将调出新的编辑器。
对于 TextPad,您可以通过执行以下操作更改编码:
Conversion: Conversion between various file formats and encodings can be made using the Save As command on the File menu. The options for encoding are ANSI, DOS, Unicode, Unicode (big endian) and UTF-8.
所以在完成上述步骤后,edit 将调出 Textpad,使用另存为可以使用各种编码保存文件。
这是从记事本更改默认编辑器的好处之一。