WebView and national encoding
WebView and national encoding
WebView does not support national encoding (for example Cyrillic) in HTML text. If in the example of Webdunia.prg the name of the button "Test 2" is replaced with a Cyrillic name, then the WebView window will be empty
- Antonio Linares
- Site Admin
- Posts: 42520
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
Re: WebView and national encoding
Dear Yuri,
You should report it in the WebView repo issues in GitHub
You should report it in the WebView repo issues in GitHub
Re: WebView and national encoding
Antonio, please, specify - how do I report this in the WebView repo release on GitHub
- Antonio Linares
- Site Admin
- Posts: 42520
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
- Antonio Linares
- Site Admin
- Posts: 42520
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
Re: WebView and national encoding
Dear Yuri,
Have you tried this ?
Try adding <meta charset="UTF-8" /> to your <head> and see if that resolves your issue.
Have you tried this ?
Try adding <meta charset="UTF-8" /> to your <head> and see if that resolves your issue.
Re: WebView and national encoding
It didn't help. I tried both under Harbour and under xHarbour ![Sad :(](./images/smilies/icon_sad.gif)
For example, when configuring Cisco, it is also impossible to make a comment in Cyrillic. Very similar
![Sad :(](./images/smilies/icon_sad.gif)
For example, when configuring Cisco, it is also impossible to make a comment in Cyrillic. Very similar
Re: WebView and national encoding
This run Ok for me
![Image](https://bitbucket.org/fivetech/fivewin-contributions/downloads/WebviewUni.png)
![Image](https://bitbucket.org/fivetech/fivewin-contributions/downloads/WebviewUni.png)
Code: Select all | Expand
#include "FiveWin.ch"
//----------------------------------------------------------------------------//
function Main()
local oWebView
oWebView := TWebView():New()
oWebView:bOnBind = { | cJson, nCalls | MsgInfo( cJson, nCalls ) }
oWebView:Bind( "SendToFWH" )
oWebView:Navigate( Html() )
Sleep( 200 )
oWebView:Eval( "SendToFWH( 'ok' )" )
oWebView:Run()
oWebView:Destroy()
return nil
//----------------------------------------------------------------------------//
function Html()
local cHtml
TEXT INTO cHtml
data:text/html,
<html>
<head>
<meta charset="UTF-8" />
</head>
<body style="background-color:cyan">
<h2>Using WebView from FWH</h2>
<button onclick='SendToFWH( 123 )'>Call FWH app from web browser</button>
<button onclick='SendToFWH( 456 )'>Test 2 Пример</button>
<button onclick='SendToFWH( 123, 456, "yes it works!" )'>Test 3</button>
</body>
</html>
ENDTEXT
? cHtml
return cHtml
//----------------------------------------------------------------------------//
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Re: WebView and national encoding
Cristobal, it's just mysticism, it doesn't work for me.
An empty Webview window appears. I have version 109.0.1518.78
![Shocked :shock:](./images/smilies/icon_eek.gif)
An empty Webview window appears. I have version 109.0.1518.78