V
VB Programmer
I have an html file that consist of this only:
<SPAN style="FONT-SIZE: 7pt; COLOR: #990033"></SPAN></FONT><SPAN
style="COLOR: #990033; FONT-FAMILY: Webdings">Ý</SPAN>
My Webding should be to the left<BR>
I have code which, for reasons beyond this question, opens the file, puts
the full html contents in a string, then does other stuff.
When I open the file and read the html into the string the webding character
"Ý" disappears! Any ideas why?
This is how I read the file:
Private Function ParseHtml(ByVal strHtmlFileName As String, ByVal strHtml As
String) As ArrayList
' Purpose: Given an HTML filename, open it, parse it out based on
the reserved parsing delimiters
Try
Dim sr As New
System.IO.StreamReader(ConfigurationSettings.AppSettings("MyDir") &
strHtmlFileName)
If strHtml = "" Then strHtml = sr.ReadToEnd ' Here strHtml
contains everything BUT the webding character!
:
:
:
At this point strHtml contains ONLY this:
<SPAN style="FONT-SIZE: 7pt; COLOR: #990033"></SPAN></FONT><SPAN
style="COLOR: #990033; FONT-FAMILY: Webdings"></SPAN>
My Webding should be to the left<BR>
Notice that the "Ý" disappears. I'm confused. Ideas? Thanks!
<SPAN style="FONT-SIZE: 7pt; COLOR: #990033"></SPAN></FONT><SPAN
style="COLOR: #990033; FONT-FAMILY: Webdings">Ý</SPAN>
My Webding should be to the left<BR>
I have code which, for reasons beyond this question, opens the file, puts
the full html contents in a string, then does other stuff.
When I open the file and read the html into the string the webding character
"Ý" disappears! Any ideas why?
This is how I read the file:
Private Function ParseHtml(ByVal strHtmlFileName As String, ByVal strHtml As
String) As ArrayList
' Purpose: Given an HTML filename, open it, parse it out based on
the reserved parsing delimiters
Try
Dim sr As New
System.IO.StreamReader(ConfigurationSettings.AppSettings("MyDir") &
strHtmlFileName)
If strHtml = "" Then strHtml = sr.ReadToEnd ' Here strHtml
contains everything BUT the webding character!
:
:
:
At this point strHtml contains ONLY this:
<SPAN style="FONT-SIZE: 7pt; COLOR: #990033"></SPAN></FONT><SPAN
style="COLOR: #990033; FONT-FAMILY: Webdings"></SPAN>
My Webding should be to the left<BR>
Notice that the "Ý" disappears. I'm confused. Ideas? Thanks!