22
votes

I have a problem setting encoding in DBeaver, specifically SQL file encoding (not db encoding!) to 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.

The problem is opening existing scripts from text files (SQL Editor / Load script). These are loaded in UTF-8, which is shown as deafult encoding. No easy way to change the encoding after opening...

Does anyone know how to change default encoding for DBeaver (or for opened files)? I cannot find the answer anywhere...

2

2 Answers

29
votes

see capture file below for a detailed explanation. Hope this helps (if still relevant)...

Visual Explanation

0
votes

Korean(한글) users who wish to set encoding to UTF-8, follow steps marked on the below figure.

enter image description here