You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "luke (Jira)" <ji...@apache.org> on 2020/07/16 07:21:00 UTC

[jira] [Updated] (NETBEANS-4591) Java Maven项目文本配置文件打开乱码

     [ https://issues.apache.org/jira/browse/NETBEANS-4591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

luke updated NETBEANS-4591:
---------------------------
    Attachment: 20200716150036.png

> Java Maven项目文本配置文件打开乱码
> ----------------------
>
>                 Key: NETBEANS-4591
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4591
>             Project: NetBeans
>          Issue Type: Bug
>         Environment: Windows 10 + JDK 8u201 + Apache NetBeans IDE 12.0 LTS
>            Reporter: luke
>            Priority: Major
>         Attachments: 20200716150036.png
>
>
> 在Java Maven项目中,项目编码为UTF-8(项目上右键Propties - Resource设置编码为UTF-8),resource目录下存在一个config.txt,文件编码为UTF-8,No BOM,Windows CRLF,直接打开config.txt,文件乱码,提示错误信息:The file config.txt cannot be safely opened with encoding GBK.Do you want to continue opening it?
> 如果在NetBeans 安装目录/etc/netbeans.conf中配置启动参数【-J-Dfile.encoding=UTF-8】,文件打开正常,没有乱码,但是项目启动后,控制台输出中文信息则会出现乱码。



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists