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?
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.
Thanks for the detail. So I believe in theory:
- I can try to find which encoding a user has with
System.getProperty(“file.encoding”)
- 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.
-
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.
Where did I go wrong? Thanks.
Brilliant, this easily gives me enough to investigate myself further.
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).