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

Elliotte Rusty Harold commented on IO-842:
------------------------------------------

No, there are several problems with that:

1. UTF-8 is not always correct or desired, even when it is the platform default 
character set.
2. JDK 18+ is a small minority of the installed base, and pre-JEP 400 VMs are 
likely to be with us for the remainder of our careers. 
3. Even on JDK 21+ UTF-8 is not guaranteed as the default character set. It can 
be changed to something else at the VM level. 

> Deprecate FileUtils.writeLines without charsets
> -----------------------------------------------
>
>                 Key: IO-842
>                 URL: https://issues.apache.org/jira/browse/IO-842
>             Project: Commons IO
>          Issue Type: Bug
>            Reporter: Elliotte Rusty Harold
>            Priority: Major
>
> Many of the FileUtils.writeLines methods use the system default encoding and 
> should be deprecated. This might require providing replacements that do use 
> an explicit encoding. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to