Hello, I'm having problems with character encoding when loading pages in a popup window, for that matter I handle the NewWindow event and instantiate a new Window which contains a WebBrowser to which I set the WebView.
Now the problems is that loading a page which contains latin characters, (á, é, í, ó, ú, ñ), doesn't work correctly, even though the html contains this meta tag:
Code: HTML/ASPX
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
I do see it correctly when using a regular browser... and I'm not sure what else can I try... this is the code I use for the popup
Code: C#
// NewWindow event handler
void WebView_NewWindow(object sender, NewWindowEventArgs e)
{
PopupWindow p = new PopupWindow(e);
e.Accepted = true;
p.Show();
this._popups.Add(p);
}
//-----------------------------------------------------------------------------
//Popup window ctor
public PopupWindow(EO.WebBrowser.NewWindowEventArgs e)
{
InitializeComponent();
this.Browser.WebView = e.WebView;
this.Browser.WebView.SetOptions(new EO.WebBrowser.BrowserOptions()
{
AllowJavaScript = true,
DefaultEncoding = System.Text.Encoding.UTF8
});
}
Thanks in advance!