You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Benjamin Asbach (Jira)" <ji...@apache.org> on 2021/09/28 20:04:00 UTC

[jira] [Commented] (NETBEANS-6069) netbeans insist that properties file should be encoded in ISO-8859-1, but is not correct in all cases

    [ https://issues.apache.org/jira/browse/NETBEANS-6069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17421647#comment-17421647 ] 

Benjamin Asbach commented on NETBEANS-6069:
-------------------------------------------

[~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: 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