I am using this code to save asp.net page as an MS Word doc file.
protected void GenerateMsWordDoc(object sender, EventArgs e)
{
string strBody = "" +
"" +
"
| ???? | 2nd cell body data |
txtName.Text + "
| ???? | 2nd cell body data |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Sam HobbsRank #107 · 20.5K reputationPosted Mar 6, 2012, 10:47 PM EST
I do not know a lot about encodings and such. I think you need to use an encoding that allows Hebrew. Look at HTML files that show Hebrew correctly; that might be a quick way to determine what encoding t use. In your code, you use Windows-1255 for the Charset but I think that does not specify what encoding to use for the HTML; you need to specify the encoding in the HTML.
In IE you can determine what encoding is used by doing "View | Encoding". You need to put the encoding in the HTML; I do not know how to do that but I could figure it out very quickly and I think you can figure it out too.