timestored/qstudio

Any plan to support Chinese?

Opened this issue · 10 comments

user-rz

QStudio/Pulse/SQLNotebook are amazing products! But it seems that QStudio/Pulse/SQLNotebook do not support Chinese encoding in UTF8 or GBK . Is there any plan to support it?

I thought we did (image below).
What isn't working? and can you outline what I would need to do?

qstudio-utf8

Sorry for not testing it carefully. qStudio/Pulse does support UTF-8 encoded Chinese characters, but cannot directly display GBK characters, which is reasonable. So far, the only problem I have encountered is that I can input Chinese, but QStudio displays it as special characters. probably because I am using Chinese Version of Windows 11.
qstudio

Thanks for the detail. So I believe in theory:

  1. I can try to find which encoding a user has with System.getProperty(“file.encoding”)
  2. Then I can set the encoding used when displaying a document with this:
    https://docs.oracle.com/javase/8/docs/api/javax/swing/JEditorPane.html#setContentType-java.lang.String-
    It may show those missing characters. But I have no way to test this and if it breaks it may affect others.

Do you have a workaround to generate UTF-8 input reasonably or is this difficult?

Thanks. I will try to generate UTF-8 input.

  1. I change Language & Region settings as following:
    qstudio1

  2. I created a UTF8 file in Notepad, which can be displayed normally in Studio for kdb+(https://github.com/CharlesSkelton/studio), but not in qStudio.
    qstudio2

Where did I go wrong? Thanks.

utf8.txt
utf8.txt

qStudio:
qstudio6
Pulse Dashboard:
qstudio3
Pulse SQLEditor:
qstudio4
Pulse SQLNotebook:
qstudio5

Brilliant, this easily gives me enough to investigate myself further.

The default of Code Font is :JetBrains Mono
image
However,in this Font Chinese does not support
image
BY change to other Font like ”华文宋体“,Things go to right
image

Great detective work @lalz001 not supporting chinese when first launched is too heavy a price to pay for a nice font.
I will revert the default font to monospaced in QStudio 4.03+. Anyone wanting jetbrains mono can set it themselves.

Should be fixed in 4.03 just released. I'll leave this issue open 2 weeks in case you want to confirm.

Thank you for the fix! The issue remains in Pulse 3.13 (Dashboard/SQL Editor/SQLNotebook).