p4ic4idea icon indicating copy to clipboard operation
p4ic4idea copied to clipboard

Chinese characters not displaying properly in the plugin

Open kalulas opened this issue 2 years ago • 4 comments

Describe the bug Encodings of both my device / P4Charset / IDE(I am using GoLand 2021.3.1) are set to UTF-8(no BOM), and all the Chinese characters are displaying correctly except in the plugin window of GoLand. It seems that all these characters are GBK-encoded.

To Reproduce Steps to reproduce the behavior:

  1. Create a changelist in P4
  2. Write a description that contains Chinese characters, for example, 这是一段中文文本 (it means 'This is a text written in Chinese')
  3. Launch or go back to Intellij IDEA and click the 'Refresh' button in the plugin view
  4. The description is not displayed correctly and is not readable
  5. FYI, this description is properly displayed in JetBrains Rider 2022.2.4, which uses its own built-in Perforce plugin I believe

Expected behavior Descriptions containing Chinese characters are all readable in the plugin view.

Attachments step2: issue-step2 step4: issue-step4 the same changelist in Rider: image log(GoLand 2021.3.1): idea.log

Desktop (please complete the following information):

  • OS: Windows10 22H2
  • IDE and version: GoLand 2021.3.1 Build #GO-213.6461.23, built on December 16, 2021
  • Version [0.12.0]

kalulas avatar Nov 23 '22 06:11 kalulas

I fixed At the bottom of the goland.vmoptions file add

-Dfile.encoding=utf-8
-Dsun.jnu.encoding=UTF-8

then restart goland

shiyunjin avatar Jan 09 '23 08:01 shiyunjin

I fixed At the bottom of the goland.vmoptions file add

-Dfile.encoding=utf-8
-Dsun.jnu.encoding=UTF-8

then restart goland

image It works for me! Thank you for your help 😄

kalulas avatar Jan 09 '23 10:01 kalulas

I don't think this issue should have been closed, it's a problem that needs to be fixed. Not everyone should have to do this manually.

shiyunjin avatar Jan 09 '23 10:01 shiyunjin

I don't think this issue should have been closed, it's a problem that needs to be fixed. Not everyone should have to do this manually.

Agree, I have reopened this issue

kalulas avatar Jan 09 '23 11:01 kalulas