VSCODE如何重新打开或使用ASCII编码保存文件

发布于 2025-01-25 22:11:27 字数 717 浏览 2 评论 0原文

我有包含SQL的文本文件,该文件在希伯来语中查询短语。

我使用UTF-8编码在VSCODE中编写了SQL。

现在,我必须使用称为BTEQ的Teradata实用程序运行此SQL。 该实用程序使用ASCII编码。

我试图通过新编码重新打开或将文件保存在Vscode中,但找不到ASCII编码。

在超编辑编辑器中,有一个ASCII编码,当我将SQL粘贴复制到超级编辑时,并通过编码SQL成功运行的ASCII保存。

有什么方法可以使用VSCODE将文件保存在ASCII编码中?

更新:2022-05-23

以下评论:

我需要的原因是我使用Teradata数据库。

SQL所用的工具称为“ Teradata Assistant”。

Teradata Assistant版本是:16.20.0.9 2019-10-25

数据库版本是:16.20.53.48

使用此工具,我可以用希伯来语编写SQL,并将其保存为文本文件。

当我使用Teradata Assistant打开文件时,用希伯来字母正确显示文件。

但是,当我使用UTF-8打开Vscode打开同一文件时,所有希伯来语字母都被此符号替换为

��最终,当我使用Notepad打开文件时,用ANSI编码编码文件时,将使用正确显示的希伯来语字母打开文件。

我觉得奇怪的是,Vscode无法做任何记事本可以做的事情。

I have text file that contains an SQL that queries a phrase in hebrew.

I wrote the SQL in VSCODE using utf-8 encoding.

Now i have to run this sql using a teradata utility called bteq.
this utility uses ascii encoding.

I tried to reopen or save the file in VSCODE with new encoding but couldn't find an ascii encoding.

In ultra-edit editor there is an ascii encoding and when i copy paste the sql to ultra-edit and save it with ascii encoding the sql runs successfully.

Is there any way to use VSCODE to save the file in ascii encoding?

Update: 2022-05-23

Following the comments:

The reason i need this is that i work with a teradata database.

The tool with which which the SQL is written is called "Teradata Assistant".

Teradata assistant version is: 16.20.0.9 2019-10-25

Database version is: 16.20.53.48

With this tool i can write the sql with hebrew letters and save it as a text file.

When i open the file with teradata assistant the file is displayed correctly with the hebrew letters.

However when i open the same file with VSCODE using UTF-8 all the hebrew letters are replaced with this symbol: �

Finally when i open the file with notepad with ANSI encoding the file is opened with the hebrew letters displayed correctly.

I find it odd that VSCODE can't do something that notepad can do..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文