Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8279328

CssParser uses default charset instead of UTF-8

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • jfx17
    • jfx18
    • javafx
    • None

    Description

      `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`.

      Attachments

        Issue Links

          Activity

            People

              mstrauss Michael Strauß
              mstrauss Michael Strauß
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: