[
https://issues.apache.org/jira/browse/NETBEANS-6069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17421647#comment-17421647
]
Benjamin Asbach edited comment on NETBEANS-6069 at 9/28/21, 8:04 PM:
---------------------------------------------------------------------
[~homberghp] -if your project is using java 8 this behavior might be legit as
per spec for java 8 properties files only support non ASCII characters when
they're encoded.-
--
-??except the input/output stream is encoded in ISO 8859-1 character encoding.
Characters that cannot be directly represented in this encoding can be written
using Unicode escapes as defined in section 3.3 of ????The Java™ Language
Specification????; only a single 'u' character is allowed in an escape
sequence.??-
-see [https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html]-
Sorry I just saw that you're talking about a PHP project. But that might be the
reason your file is converted somehow.
Can you provide a test project?
was (Author: asbachb):
[~homberghp] if your project is using java 8 this behavior might be legit as
per spec for java 8 properties files only support non ASCII characters when
they're encoded.
??except the input/output stream is encoded in ISO 8859-1 character encoding.
Characters that cannot be directly represented in this encoding can be written
using Unicode escapes as defined in section 3.3 of ????The Java™ Language
Specification????; only a single 'u' character is allowed in an escape
sequence.??
see [https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html]
> netbeans insist that properties file should be encoded in ISO-8859-1, but is
> not correct in all cases
> -----------------------------------------------------------------------------------------------------
>
> Key: NETBEANS-6069
> URL: https://issues.apache.org/jira/browse/NETBEANS-6069
> Project: NetBeans
> Issue Type: Improvement
> Components: cnd - Editor
> Affects Versions: 12.5
> Reporter: Pieter van den Hombergh
> Priority: Major
>
>
> I happened to edit a bundle properties file with german UTF text inside, but
> NetBeans opens as ISO-8859-1.
> The use case in this case is PHP project, but I think it is no longer
> relevant to
> make NetBeans assume from the extension that the file is ISO-8859-1.
> NetBeans seems to silently convert, and thereby break the original UTF-8 file.
>
> Anyway, it was a surprise.
> Maybe this is adequate: 'assumption is the mother of all f**k-ups.
>
--
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