qos-ch / logback

The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch
Other
2.98k stars 1.28k forks source link

use defaultCharset instead of failing on invalid file.encoding #778

Open kriss-s opened 7 months ago

kriss-s commented 7 months ago

Possible fix for #777

If not supporting Java 8 the try/catch is unnessecary as one can use URLDecoder.decode(String, Charset). This change would be in line with the recent JDK change to always use the default charset for decode.