Charset #PB_Web_HtmlCode
Posted: Wed Feb 21, 2018 8:35 pm
Not display characters Ã É Í
Code:
Result:

Code:
Code: Select all
Procedure teste()
If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
Protected web_gadget = WebGadget(#PB_Any, 10, 10, 580, 280, #Null$)
Protected html_code$ = "<!DOCTYPE html> "+
"<html lang='en'> "+
"<head> "+
" <meta charset='UTF-8'> "+
" <title></title> "+
" </head> "+
" "+
"<body class='landscape'> "+
" <h1>Ã É Í </h1> "+
"</body> "+
"</html> "
SetGadgetItemText(web_gadget,#PB_Web_HtmlCode,html_code$)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
EndProcedure
teste()
