CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 9/26/2007 8:52:27 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 23 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
mfhossain
Asp.Net User
File name(danish/latin) has been changed on download popup form of Internet Explorer9/26/2007 8:52:27 AM

0/0

I am facing a problem where file name has been changed on download form of IE. The name of file name is "P? dette trin kan du.txt"  but it shows "P??_dette_trin_kan_du.txt" on download form

I used folllowing codes:

        HttpContext.Current.Response.AddHeader("Content-disposition", "attachment; filename=" + "\"" + "P? dette trin kan du.txt" + "\"");
        byte[] b = new byte[10]; //dummy
        HttpContext.Current.Response.ContentType = "application/pdf";
        HttpContext.Current.Response.BinaryWrite(b);
        HttpContext.Current.Response.End();


 


Muhmmad Fakhrul Hossain
Email: [email protected]
Phone: +88 01715 111512
Web: http://www.mfhossain.info
Mikhail Arkhipo
Asp.Net User
Re: File name(danish/latin) has been changed on download popup form of Internet Explorer9/27/2007 12:13:11 AM

0/0

Save code file in UTF-8 with signature via File | Save As... and click on the down arrow on the Save button. Most probably code got saved in default OS code pages while at runtime different encoding was using during compilation. Also, try specifying HTTP response encoding to the browser in UTF-8 or Unicode.


Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
mfhossain
Asp.Net User
Re: File name(danish/latin) has been changed on download popup form of Internet Explorer9/30/2007 3:39:10 AM

0/0

Hi Mikhail,

I have tried this as you said. It is not working. But I found in mozilla it is ok. do you have any idea? 


Muhmmad Fakhrul Hossain
Email: [email protected]
Phone: +88 01715 111512
Web: http://www.mfhossain.info
mfhossain
Asp.Net User
Re: File name(danish/latin) has been changed on download popup form of Internet Explorer10/1/2007 6:06:15 AM

0/0

I got the solution. Code in C# is in below, 

     string sFileName = string.Empty;
        
        bool bIsIE = Request.UserAgent.ToLower().Contains("msie");
        if (bIsIE)
        {
            sFileName = Server.UrlEncode(pFileName.Replace(' ', '_'));
        }
        else
        {
            sFileName = pFileName;        
        }


Muhmmad Fakhrul Hossain
Email: [email protected]
Phone: +88 01715 111512
Web: http://www.mfhossain.info
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
File name(danish/latin) has been changed on download popup form of ... File name(danish/latin) has been changed on download popup form of Internet Explorer. Rate It (1). Last post 10-01-2007 2:06 AM by mfhossain ...
FREE PDF Printer With this you can superimpose on print jobs from Internet Explorer and Firefox. .... Fix: Specifying folders as default file names has been improved. ...
Internet Explorer 7 Pop-Up Blocker Blocks Script Generated Drop ... Jul 2, 2006 ... Next generation web browser from Microsoft - Internet Explorer 7 (IE7) is .... Traducir a Latinoamericano EspaƱol/Latin American Spanish ...
FCKeditor - What's New Minor errors on the language file for danish has been corrected. .... [SF BUG- 737143] Paste from Word cleaning changed to solve some IE 5.0 errors. ...
A Guide to the Below is a sample toolbar that has been personalized with several buttons. ..... A Pop-up Blocker will be included in Windows Internet Explorer 7. ...
FCKeditor - What's New? It now possible to tell IE to send a
when the user presses the Enter key. ... A typo in the Polish language file has been corrected. ...
FCKeditor - What's New? [SF BUG-1185911] The Greek language file name has been corrected to ...... [SF BUG-737143] Paste from Word cleaning changed to solve some IE 5.0 errors. ...
FCKeditor - What's New? [SF BUG-1535946] The IE dialog system has been changed to better work ...... [SF BUG-1185911] The Greek language file name has been corrected to "el.js". ...
AirPlus United Kingdom - Travel Expense Claim / Business Travel ... To change Pop-up Blocker settings: Open Internet Explorer ... Once the user has been authenticated by entering their company name, user name and password, ...
TextPad Release Notes If you were prompted to reload a file, because it had been changed by an ..... When registering TextPad as an HTML editor for IE, the registry entries have ...




Search This Site:










treeview_bound sample throws error when reading xml file

windows server 2003 sp1

forms authentication - sub dir

is possible to center the master page first and then change the align to left?

ok...just shoot me

error: alertmessage (can't open page ....)

login work only on root-leve, why?

problems opening new project to create a module

user control events

use method from masterpage in content page

how to update the 'host' account details

major asp.net forms authentication vulnerability found

system message email: change default sender

storing and displaying custom user html data

clear the checkednodes in a treeview

help needed to deploy

access to upload file path is denied

another solpart question

exposing content

problems with positioning text and controls in masterpage and contentplace holder

hyperlink custom control

ssl and dnn?

does the viewstate of dnn cause it to be slow?

any idea on creating a dynamic treeview using system.web.ui.webcontrols in asp.net

vs 2005 gets blank page after testing a few times

window's authrntication and user.isinrole("groupname") --- is this a bug?

admin problems

is it normal to see so many exceptions in log viewer running dnn 4.0.2?

personalized tabs like igoogle or personalized page in live

vs2005 and .net 1.1

 
All Times Are GMT