AxWebBrowser wrongly displays special characters

  • Thread starter Thread starter ISdotNET
  • Start date Start date
I

ISdotNET

Hi there,

I am new to this board and would first of all like to wish you all
Happy Hollidays.
As most new users, I joined because I have an issue (problem).

I am using VB.NET in a windows app and have a rich text box on a form
containing text with HTML syntax elements, like
"<b>Hello</b>"

If I click on the button on this form, I write the text box contents
to the text file (saved with html extension) and invoke a form with
an AxWebBrowser control that navigates to that text file.

The browser control displays my formatted text just as I would expect,
with one exception:
Special characters, like the symbol ®, are displayed with another
character as a prefix, like this: ®

I thought it might have to do with the font that I am using (default
MS Sans Serif), but the AxWebBrowser control does not even have a
font property.

Does anyone understand what I am trying to explain? And if so, does
anyone know what my problem is and how I can solve it?

Any help would be greatly appreciated...

IS :D
 
* (e-mail address removed)-spam.invalid (ISdotNET) scripsit:
I am new to this board and would first of all like to wish you all
Happy Hollidays.
As most new users, I joined because I have an issue (problem).

I am using VB.NET in a windows app and have a rich text box on a form
containing text with HTML syntax elements, like
"<b>Hello</b>"

If I click on the button on this form, I write the text box contents
to the text file (saved with html extension) and invoke a form with
an AxWebBrowser control that navigates to that text file.

The browser control displays my formatted text just as I would expect,
with one exception:
Special characters, like the symbol ®, are displayed with another
character as a prefix, like this: ®

You will have to include a charset definition in your file. Without
knowing what exactly you write into the file and if it is valid HTML or
XHTML, it's hard to say anything.
 
Back
Top