Read HTML code into c# program, store in string

A

amitM

Hi

Probably this is very silly and simple question

We are writing code to read varous HTML files (different pages of
book) and display on our webform.

The individual HTML files look good (outside my program) but when I
read the HTML code and assign it to a string the special characters
like (',\) are replaced by small boxes. even the extra spaces are
replaced by small boxes.

How can I read HTML code into application and assign to variable
without being messed up???



Please help

P.S. - The HTML files are generated from word file
 
C

Cubaman

Hi

Probably this is very silly and simple question

We are writing code to read varous HTML files (different pages of
book) and display on our webform.

The individual HTML files look good (outside my program) but when I
read the HTML code and assign it to a string the special characters
like (',\) are replaced by small boxes. even the extra spaces are
replaced by small boxes.

How can I read HTML code into application and assign to variable
without being messed up???

Please help

P.S. - The HTML files are generated from word file

Hello:
How do you read the files? Could you post some code? It looks like
you're having problem with the encoding of the file, try using UTF-8
or something different from ASCII encoding.
Best regards.
 
B

behdad

Hi

Probably this is very silly and simple question

We are writing code to read varous HTML files (different pages of
book) and display on our webform.

The individual HTML files look good (outside my program) but when I
read the HTML code and assign it to a string the special characters
like (',\) are replaced by small boxes. even the extra spaces are
replaced by small boxes.

How can I read HTML code into application and assign to variable
without being messed up???

Please help

P.S. - The HTML files are generated from word file

Try to read the html text and then inject it to a DIV by javascript
 

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,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top