Streaming .Htm file to a page

L

Leon

Hi Everybody.

I am streaming Html File.

Dim sReader = New StreamReader(pcFileName)
Dim strInnerHtml As String = sReader.ReadToEnd.ToString
divTemplate.InnerHtml = strInnerHtml

For some reason on the page instead of (') - apostrophe it shows symbol
like this:�

Does anyone know how to fix it?

Thanks in advance
 
M

Mark Fitzpatrick

Check and make sure it's a real apostrophe. Some programs create those curly
apostrophies, which come from a font and aren't ASCII values. In this case
they can sometimes appear as a block, which denotes an unknown binary
character.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
 
L

Leon

Mark, thanks for your reply.

Actualy sometimes it's a real apostrophe, sometimes it's a spanish stress
mark.
Some of our web pages in spanish. What should I do in this case?
 
L

Leon

Thanks Bruce.

The problem is that some of our webpages (htm files) in spanish.
Do you know how to fix this problem?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top