WPF WebBrowser NavigateToString vs NavigateToStream (hebrew/non-utf8 encodings)

Posted by David E on Stack Overflow See other posts from Stack Overflow or by David E
Published on 2010-05-10T15:31:09Z Indexed on 2010/05/10 15:34 UTC
Read the original article Hit count: 1719

Filed under:
|
|

When I use WPF WebBrowser's NavigateToString method to display UTF8 html (with hebrew text in it) it's displayed perfectly.

However, when I try to use the NavigateToString to display html with hebrew text in it in a non-utf8 encoding (CodePage 1255 to be exact) the hebrew is messed up.

I checked the cp1255 string in Visual Studio's debugger and it looks great, and also when I save the source of the web browser's contents and open it with an external browser it looks great.

If I use the NavigateToStream method instead of the NavigateToString method it works great.

What's the problem with the NavigateToString? am I doing something wrong?

© Stack Overflow or respective owner

Related posts about hebrew

Related posts about wpf