p4ic4idea
p4ic4idea copied to clipboard
Chinese characters not displaying properly in the plugin
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:
- Create a changelist in P4
- Write a description that contains Chinese characters, for example,
这是一段中文文本
(it means 'This is a text written in Chinese') - Launch or go back to Intellij IDEA and click the 'Refresh' button in the plugin view
- The description is not displayed correctly and is not readable
- 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:
step4:
the same changelist in Rider:
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]
I fixed
At the bottom of the goland.vmoptions
file add
-Dfile.encoding=utf-8
-Dsun.jnu.encoding=UTF-8
then restart goland
I fixed At the bottom of the
goland.vmoptions
file add-Dfile.encoding=utf-8 -Dsun.jnu.encoding=UTF-8
then restart goland
It works for me! Thank you for your help 😄
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.
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