G
Guest
Hello all,
In my code im using Response.Write(someText) to write out some Japanese text
to a new browser window. In the command window, the text is correct, but when
the browser window opens it appears as ャーã®エア抜ãÂÂ.
Why would this be so? My code is below:
Response.ClearHeaders();
Response.ClearContent();
Response.Buffer= true;
Response.AppendHeader("content-length", strResponse.Length.ToString());
Response.AppendHeader("content-disposition", "attachment;filename=Online
Form Results " + IDToDisplay.ToString()+ ".html");
Response.ContentType = "text/html";
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.Expires = 0;
Response.Write(strResponse);
Response.End();
Thanks all for help.
JY
In my code im using Response.Write(someText) to write out some Japanese text
to a new browser window. In the command window, the text is correct, but when
the browser window opens it appears as ャーã®エア抜ãÂÂ.
Why would this be so? My code is below:
Response.ClearHeaders();
Response.ClearContent();
Response.Buffer= true;
Response.AppendHeader("content-length", strResponse.Length.ToString());
Response.AppendHeader("content-disposition", "attachment;filename=Online
Form Results " + IDToDisplay.ToString()+ ".html");
Response.ContentType = "text/html";
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.Expires = 0;
Response.Write(strResponse);
Response.End();
Thanks all for help.
JY