[
https://issues.apache.org/jira/browse/NETBEANS-2374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17094736#comment-17094736
]
Andrew James commented on NETBEANS-2374:
----------------------------------------
Using Apache NetBeans 11.1, I can recreate this issue as follows:
1) Create a new Gradle project: File ? New Project > Java with Gradle > Java
Application.
2) Use the following code:
import java.io.PrintStream;
import java.nio.charset.StandardCharsets;
public class Main {
public static void main(String[] args) {
PrintStream out = new PrintStream(System.out, true,
StandardCharsets.UTF_8);
out.println("foo");
out.println("读写汉字 学中文");
out.println("שלום");
out.println("bar");
}
}
3) Ensure the NetBeans installation already has -J-Dfile.encoding=UTF-8 defined
in NetBeans.comf, for netbeans_default_options.
4) Add the following to the build.gradle:
compileJava.options.encoding = "UTF-8"
Expected console output (using Monospaced font):
foo
读写汉字 学中文
שלום
bar
Actual:
foo
bar
In other words, the multibyte characters are not displayed.
> Editor does not show UTF-8 codepoint as Unicode character
> ---------------------------------------------------------
>
> Key: NETBEANS-2374
> URL: https://issues.apache.org/jira/browse/NETBEANS-2374
> Project: NetBeans
> Issue Type: Bug
> Components: editor - Other, projects - Gradle
> Affects Versions: 11.0
> Environment: Netbeans 11
> Gradle 5
> Java 11
> Reporter: Netbeans User 2019
> Priority: Critical
>
> There is additional issue (or not reported new feature on Netbeans 11) as
> seems that Netbeans "Editor" stop understand UTF-8 so presents all characters
> instead of showing just exact Unicode character of that codepoint.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists