svenkreiss / html5validator

Command line tool to validate HTML5 files. Great for continuous integration.
MIT License
314 stars 34 forks source link

Force UTF-8 encoding in Java JVM to better handle JVM strings from stdout and stderr #120

Open frodeseverin opened 1 year ago

frodeseverin commented 1 year ago

Running JVM on systems with default encoding different from UTF-8 will trigger encoding error in parsing stdout and stdout messages from vnu.jar into python. Forcing JVM to run with UTF-8 encoding ensures proper handling of stings from i.e. file access errors within the JVM execution loop.