简体   繁体   English

DBeaver 文件编码 (cp1250 - Windows-1250) - 更改默认编码?

[英]DBeaver file encoding (cp1250 - Windows-1250) - change default encoding?

I have a problem setting encoding in DBeaver, specifically SQL file encoding (not db encoding!) to cp1250 (Windows-1250)我在 DBeaver 中设置编码时遇到问题,特别是将 SQL 文件编码(不是 db 编码!)设置为 cp1250 (Windows-1250)

No problem to set such encoding for new files/scripts - right click on Scripts folder (or the whole project folder, from which scripts are inheriting): Properties / Resources / Text file encoding.为新文件/脚本设置此类编码没问题 - 右键单击​​ Scripts 文件夹(或整个项目文件夹,脚本从中继承):属性/资源/文本文件编码。

The problem is opening existing scripts from text files (SQL Editor / Load script).问题是从文本文件(SQL 编辑器/加载脚本)打开现有脚本。 These are loaded in UTF-8, which is shown as deafult encoding.这些以 UTF-8 加载,显示为默认编码。 No easy way to change the encoding after opening...打开后没有简单的方法可以更改编码...

Does anyone know how to change default encoding for DBeaver (or for opened files)?有谁知道如何更改 DBeaver(或打开的文件)的默认编码? I cannot find the answer anywhere...我在任何地方都找不到答案...

see capture file below for a detailed explanation.有关详细说明,请参阅下面的捕获文件。 Hope this helps (if still relevant)...希望这会有所帮助(如果仍然相关)...

视觉说明

Korean(한글) users who wish to set encoding to UTF-8, follow steps marked on the below figure.韩文(한글) 用户希望将编码设置为 UTF-8,请按照下图标记的步骤操作。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM