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

UTF-8 scripts encoding problem #1764

Open
euu2021 opened this issue Mar 28, 2024 · 2 comments
Open

UTF-8 scripts encoding problem #1764

euu2021 opened this issue Mar 28, 2024 · 2 comments
Labels

Comments

@euu2021
Copy link
Contributor

euu2021 commented Mar 28, 2024

Consider a script with this content: node.text = "📌"

When I open Tools->Edit script… , create new script with this content, and apply to an empty node, the result is, as expected:
image

When I save a groovy file, encoded in UTF-8, and apply it using Tools->Scripts->Test UTF, the result is:
image

The groovy file used in the example:

testUTF.zip

Maybe, related to: #98

@euu2021 euu2021 added the bug label Mar 28, 2024
@dpolivaev
Copy link
Contributor

I am going to enforce reading files using UTF-8 encoding following Java decision to change their default to UTF-8 on all systems. Because can be a breaking change for some users, I am going to introduce it only in Freeplane 1.12.x. And I am not going to have it configurable.

For the moment you can enforce using UTF-8 by adding -Dfile.encoding=UTF-8 to freeplane.bat, freeplane.l4j.ini and freeplaneConsole.l4j.ini or by using Java 18 or later for running Freeplane.

What do you think?

@euu2021
Copy link
Contributor Author

euu2021 commented Mar 29, 2024

I am going to enforce reading files using UTF-8 encoding following Java decision to change their default to UTF-8 on all systems. Because can be a breaking change for some users, I am going to introduce it only in Freeplane 1.12.x. And I am not going to have it configurable.

For the moment you can enforce using UTF-8 by adding -Dfile.encoding=UTF-8 to freeplane.bat, freeplane.l4j.ini and freeplaneConsole.l4j.ini or by using Java 18 or later for running Freeplane.

What do you think?

It makes sense.

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

No branches or pull requests

2 participants