marcomq / nimview

A Nim/Webview based helper to create Desktop/Server applications with Nim/C/C++ and HTML/CSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unicode support in release mode

kac- opened this issue · comments

commented

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

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.

commented

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.