Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chinese characters not displaying properly in the plugin #234

Open
kalulas opened this issue Nov 23, 2022 · 4 comments
Open

Chinese characters not displaying properly in the plugin #234

kalulas opened this issue Nov 23, 2022 · 4 comments

Comments

@kalulas
Copy link

kalulas commented Nov 23, 2022

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]
@shiyunjin
Copy link

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

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

then restart goland

@kalulas
Copy link
Author

kalulas commented Jan 9, 2023

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 kalulas closed this as completed Jan 9, 2023
@shiyunjin
Copy link

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.

@kalulas kalulas reopened this Jan 9, 2023
@kalulas
Copy link
Author

kalulas commented Jan 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants