typedb / typedb-studio

TypeDB Studio (IDE)
https://typedb.com
Mozilla Public License 2.0
191 stars 44 forks source link

.tql file displays Chinese garbled characters #627

Closed qqliang closed 1 year ago

qqliang commented 2 years ago

Please replace every line in curly brackets ( { like this } ) with appropriate answers, and remove this line.

Description

While using TypeDB Studio creates xxx.tql file and inputs some Chinese, it displays Chinese garbled characters. image

Environment

  1. TypeDB version: TypeDB 2.11.0
  2. OS of TypeDB server: Ubuntu 16.4
  3. Studio version: 2.11.0
  4. OS of Studio: Windows 10
  5. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. click plus button to create .tql file
  2. type some typeql code with Chinese comments
  3. save file
  4. Chinese comments display garbled characters

Expected Output

Display Chinese normally!

Actual Output

Chinese comments display garbled characters, as shown as following screenshot image

jamesreprise commented 2 years ago

Many thanks for your report @qqliang, there are problems with support for Chinese language characters within our Text Editor currently and this is within the current milestone to be fixed, see:

When you say the characters are garbled, are they completely incorrect as they are typed in or only when edited later on? Also, just to check, we italicise all text in comments. Are you referring to this italicisation effect at all when you say garbled? See below.

image
qqliang commented 2 years ago

Thanks for your reply. While typing Chinese characters to Text Editor, it shows correctly. But when I press Ctrl+S to save and reopen, it shows garbled. Example is as follows: [image] [image]

jamesreprise commented 1 year ago

We have a solution in the works for this issue now. I'm closing this as a duplicate and merging with: