Home > ASP Development > Streaming foreign characters to MS Word/Excel

Streaming foreign characters to MS Word/Excel



Hi there,

I was wondering if anyone could help me with the following problem.

I have a page set up to display various foreign language characters using:
<%@ Language=VBScript CodePage=65001%>
And
Response.charset = "utf-8"

The web page displays everything fine.

However when I stream the page to MS word using Response.ContentType="application/msword", the foreign language characters are replaced by garbage.

Interestingly, when I cut and paste directly from the original web page to Word, the characters are displayed correctly.

Any advice would be grately appreciated. Thanks

Jay

    
Guest


are you using ASCII code for these uncommon characters???

Was this answer helpful ? Yes No   
Guest


Quote:
Originally Posted by leuvenaar
are you using ASCII code for these uncommon characters???


No, the data is simply being written to the web page as retreived from the SQL tables.
Seems to display fine until I attempt to stream to Excel or Word, at which point any foreign langauge characters are displayed incorrectly.

Thanks.

Was this answer helpful ? Yes No   
Guest


maybe worth trying to put ASCII characters in database??
maybe some expert on this forum is familiar with putting headers in the HTML which solves this problem??

I have the same problem parsing "+" from a webpage towards an excel file. This will not succeed for me also. Let me know if there is a solution!

greatings

Was this answer helpful ? Yes No   
Guest


I had a look on the web and found some shareware that can translate in to different languages:



http://www.sharewareconnection.com/titles/translate.htm



and i found this article about displaying different char sets also:



http://www.w3.org/TR/REC-html40/charset.html

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved