-
Notifications
You must be signed in to change notification settings - Fork 164
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 #188
Comments
This comment was marked as outdated.
This comment was marked as outdated.
Coming back to this. What kind of use-case would this serve? #include "webui.h"
int main() {
size_t my_window = webui_new_window();
webui_show(my_window, "<html><head><script src=\"webui.js\"></script></head>Hello 👋!</html>");
webui_wait();
return 0;
} While the window for the code above would contain: #include "webui.h"
int main() {
size_t my_window = webui_new_window();
webui_show(my_window, "<html><head><meta charset=\"UTF-8\"><script "
"src=\"webui.js\"></script></head>Hello 👋!</html>");
webui_wait();
return 0;
} Just specifying the html charset is enough to correctly display |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, I wasn't clear enough in my comment. <p>
Unicode Test:<br><br>
مرحبًا<br> <!-- Arabic -->
你好<br> <!-- Chinese -->
こんにちは <!-- Japanese -->
</p> I mean by supporting Unicode in WebUI is to make library able to handl Unicode files name and paths. |
I see, so it's an issue regarding accessibility and internationalisation. |
Implemented (42c6e22). |
FYI: No wrapper changes are needed. |
WebUI does not support Unicode right now. If the local file name, HTML content or any
string
is encoded in a multi-byte format like UTF8, it won't show proper characters in most cases. We can update all WebUI APIs fromchar*
towchar_t*
beside all the needed core changes. This will make WebUI support Unicode.If we did this, some wrappers probably need updates to make strings multi-byte instead of one-byte format (ASCII). Before I process this, I would like to know your thoughts.
V Unicode
Nim Unicode
TypeScript Unicode
Python Unicode
Pascal Unicode
Go Unicode
The text was updated successfully, but these errors were encountered: