Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Asset Constructor Doesn't Handle UTF-16 Text Files When Loading Addon #4594

Closed
ColdAnkles opened this issue Dec 29, 2023 · 0 comments · Fixed by #4596
Closed

[Bug]: Asset Constructor Doesn't Handle UTF-16 Text Files When Loading Addon #4594

ColdAnkles opened this issue Dec 29, 2023 · 0 comments · Fixed by #4596
Labels

Comments

@ColdAnkles
Copy link
Contributor

Describe the Bug

When loading an Addon that contains a file encoded in UTF-16 text, will include control characters in string conversion.

To Reproduce

  1. Create a MapTool addon
  2. Include in the addon a JSON file encoded in UTF-16
  3. Attempt to load the error
  4. Receive a MalformedJSON exception

Expected Behaviour

Addon loaded as expected

Screenshots

No response

MapTool Info

1.14.3

Desktop

Windows 11

Additional Context

/maptool/src/main/java/net/rptools/maptool/model/Asset.java: Line 474

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant