New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text encoding issues with default settings #6407
Comments
Imported From: https://issues.scala-lang.org/browse/SI-6407?orig=1 |
@soc said: |
For the record: it appears to me that the bug part of this already got fixed at some point, and scala/scala#10004 is just code cleanup (with one esoteric exception in |
The PR links to the fix on xml. I did not deprecate this arguable default on the grounds that https://github.com/scala/scala/blob/2.13.x/src/library/scala/io/Source.scala#L119 |
Too bad April is almost over. At the beginning of the month, they ought to have announced the deprecation of Scala 2 in its entirety. Deprecation messages would continue to be emitted in Scala 3 under |
Honestly I think fixing |
While in a perfect world “Unicode/UTF-8 everywhere” would be a sensible standard, Scala has to work well with existing code.
Because of that, text encoding/input/output is done in Unicode where possible and in the underlying platform's encoding where necessary (due to Java's heritage).
Despite that, there are several places in the standard library where a third way has been chosen: Defaulting to some outdated encodings of the ISO-8859-X family.
This should be fixed.
The text was updated successfully, but these errors were encountered: