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

Unicode support in release mode #40

Open
kac- opened this issue Aug 23, 2022 · 2 comments
Open

Unicode support in release mode #40

kac- opened this issue Aug 23, 2022 · 2 comments

Comments

@kac-
Copy link

kac- commented Aug 23, 2022

In minimal example
When I change proc to include polish ł instead of l:

proc echoAndModify(value: string): string =
  result = "'" & value & "' modified by minimał"

In dev mode (browser) it works fine but in release mode (standalone) alert box shows:
screenshot

Backend replies with content-type: application/json, maybe explicit charset would fix it: content-type: application/json; charset=utf-8.

ubuntu, libwebkit2gtk-4.0.so.37
@marcomq
Copy link
Owner

marcomq commented Aug 27, 2022

Thx for adding this issue.

maybe explicit charset would fix it: content-type: application/json; charset=utf-8.

I guess charset=utf-8 doesn't fix the issue, right?
Not sure if sending html entities like ä would fix the issue.

Currently, I'm not really working much on nimview. I found tuari and it seems to be more mature. I'm mostly waiting for them to have some nim FFI.
But I would merge a PR (and maybe perform a simple code change), if you found some solution for this.

@kac-
Copy link
Author

kac- commented Aug 27, 2022

Tauri is much heavier but it is what it is, nimview is still v. nice tool for quick click/show/modify.
If I find a way then PR for sure.
Thx.

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

No branches or pull requests

2 participants