Integrated: 8279328: CssParser uses default charset instead of UTF-8
Michael Strauß
mstrauss at openjdk.java.net
Sat Jan 8 16:58:23 UTC 2022
On Wed, 29 Dec 2021 15:39:39 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
> `CssParser.parse(URL)` is specified to assume UTF-8 file encoding, but (implicitly) uses the default charset to read the file, potentially resulting in incorrect interpretation of the file content.
>
> This can be fixed by explicitly specifying the UTF-8 charset for `InputStreamReader`.
This pull request has now been integrated.
Changeset: be3b3bd2
Author: Michael Strauß <mstrauss at openjdk.org>
Committer: Kevin Rushforth <kcr at openjdk.org>
URL: https://git.openjdk.java.net/jfx/commit/be3b3bd2a3af078b7c43a400014721efc6824efa
Stats: 31 lines in 2 files changed: 30 ins; 0 del; 1 mod
8279328: CssParser uses default charset instead of UTF-8
Reviewed-by: aghaisas
-------------
PR: https://git.openjdk.java.net/jfx/pull/705
More information about the openjfx-dev
mailing list