Skip to content

Conversation

@imagejan
Copy link
Member

I noticed that scripts containing non-ASCII characters (such as äöü) are not loaded correctly on Windows when they are loaded from within a jar file.

See imagej/example-script-collection@fb97574 for some example scripts that currently fail (on Windows).

With this PR, the above scripts work as expected.

@ctrueden do you think it is safe to always use UTF-8 here, or are there cases of other URLs where we need to allow different encodings? In that case, we should make sure to use the correct encoding in all situations.

@ctrueden ctrueden merged commit 5910996 into master Jun 5, 2018
@ctrueden ctrueden deleted the fix-script-loading-from-resource branch June 5, 2018 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants