Comments (3)
Encoding issues
I'm not currently seeing the encoding issues.
I modified the basic example for C like this:
--- basic.c 2023-11-29 15:56:19.810600600 +0900
+++ basic.new.c 2023-11-29 15:52:09.401328600 +0900
@@ -16,9 +16,9 @@
int main() {
#endif
webview_t w = webview_create(0, NULL);
- webview_set_title(w, "Basic Example");
+ webview_set_title(w, "こんにちは, 你好, 안녕하세요, привет");
webview_set_size(w, 480, 320, WEBVIEW_HINT_NONE);
- webview_set_html(w, "Thanks for using webview!");
+ webview_set_html(w, "こんにちは, 你好, 안녕하세요, привет");
webview_run(w);
webview_destroy(w);
return 0;
Can you provide an example to demonstrate the encoding problem?
I tested this on Windows 10 (compiled with GCC 8.3).
from webview.
Window initialization problem
Is this code a good example for showing the problem?
#include "webview.h"
#include <stddef.h>
#include <windows.h>
LRESULT lpfnWndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp) {
switch (msg) {
case WM_CLOSE:
PostQuitMessage(0);
break;
default:
return DefWindowProcW(hwnd, msg, wp, lp);
}
return 0;
}
int main() {
HINSTANCE hInstance = GetModuleHandle(0);
WNDCLASSEXW wc;
ZeroMemory(&wc, sizeof(WNDCLASSEX));
wc.cbSize = sizeof(WNDCLASSEX);
wc.hInstance = hInstance;
wc.lpszClassName = L"app_window";
wc.lpfnWndProc = lpfnWndProc;
RegisterClassExW(&wc);
HWND window = CreateWindowW(L"app_window", L"", WS_OVERLAPPEDWINDOW, 100, 100,
480, 320, NULL, NULL, hInstance, NULL);
ShowWindow(window, SW_SHOW);
UpdateWindow(window);
webview_t w = webview_create(0, &window);
webview_set_title(w, "Example");
//webview_set_size(w, 480, 320, WEBVIEW_HINT_NONE); // Problem in screenshot exists with and without this line
webview_set_html(w, "Hello");
webview_run(w);
webview_destroy(w);
}
from webview.
Related Issues (20)
- IndexedDB always deleted? HOT 2
- How to provide users a download from my JS app in webview? HOT 3
- Can I activate some caching? HOT 1
- fatal error: EventToken.h: No such file or directory HOT 4
- Feature request: Supporting IndexedDB on all platforms
- Question : Does WebView have some memory? - Cookies. - Browser History.
- MSHTML for Windows HOT 1
- Synced eval or yield function
- Build example on Windows HOT 1
- Warning about the use of deprecated function 'webkit_web_view_run_javascript' at compile time under linux HOT 1
- Size limit on bind? HOT 1
- WebCore (Ultralight) as alternative renderer
- webview will not run HOT 2
- Reduce interference with user-owned window HOT 1
- examples/basic: Blank screen HOT 18
- How to correctly render the web page? HOT 3
- Q: HTTP communication over unix domain sockets HOT 1
- Add troubleshooting hint to readme about where to get CMake on windows machines.
- Calling Webview::eval on some JS code does not work. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webview.