473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Question: Weird webding error

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.AppSe ttings("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!
Nov 18 '05 #1
2 1250
i believe because webdings font are a special character set.
have you tried reading it as unicode for instance?

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"VB Programmer" <Do*****************@jEmail.com> wrote in message
news:eW**************@TK2MSFTNGP12.phx.gbl...
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.AppSe ttings("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!

Nov 18 '05 #2
No. How can I do that? Thanks.
"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
i believe because webdings font are a special character set.
have you tried reading it as unicode for instance?

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"VB Programmer" <Do*****************@jEmail.com> wrote in message
news:eW**************@TK2MSFTNGP12.phx.gbl...
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.AppSe ttings("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!


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: redneck_kiwi | last post by:
Hi all: I have a really weird problem. I am developing a customer catalog system for my company and as such have delved into sessions for authentication and access levels. So far, I have managed...
14
by: LRS Kumar | last post by:
The following code - from "C++ Templates: The Complete Guide" by Vandevoorde/Josuttis - seems to compile with Borland C++. However it fails to compile with other compilers - Comeau Online and g++....
6
by: Arthur J. O'Dwyer | last post by:
As far as I know, C89/C90 did not contain the now-standard offsetof() macro. Did C89 mandate that structs had to have a consistent layout? For example, consider the typical layout of the...
11
by: nishant | last post by:
I've a structure: struct msghdr { //some goes here struct iovec *msg_iov; //some more --- }
16
by: Alvin Bruney | last post by:
I'm observing that a sleeping thread changes to stopped after a while. Is that accepted framework behavior for web applications? My thread basically does some work, and sleeps for 60 minutes...
2
by: Diffident | last post by:
Hello All, I just finished reading an interesting article by Scott about App Domains: http://odetocode.com/Articles/305.aspx Scott, I have a question about the section "Shadow Copies and...
0
by: P Pulkkinen | last post by:
Dear all, sorry, i know this code is far little too long to debug here, but there is really annoying logical error. If someone debugs this, I really offer warm virtual handshake. What this...
25
by: bweaverusenet | last post by:
Hi. I am trying to get some javascript to work in IE6, from the address line. It works in Firefox and, I believe, IE7. It appears that with some number of nested structures, the code does not...
2
by: carlos123 | last post by:
im pretty new to java. this might sound like a weird question but! how do i add this code class FileWrite { public static void main(String args) { try{ // Create file ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.