Recently found that IIS can not download the Chinese name of the file, feel very strange.
Version: WINDOWS2003SERVER+IIS6
It should be no problem.
Online check, said:
Open the registry in the run: Desktop left Corner "start" menu, run, enter "regedit", 98 version is "Regedit32", expand the following directory, hkey_local_machine\system\currentcontrolset\ Services\inetinfo\parameters\
Favordbcs the valu
1. What is an IFRAME?
The IFRAME closing tag creates an inline frame that contains another document, which can be placed between the IFRAME for browsers that do not support IFRAME.
The role of 2.iframe
(1) Download of file (attachment) via IFRAME
By hiding the IFRAME, when the Click event is triggered, the dynamic setting SRC will be able to implement the file
response| Control | problem | The packet type that the download server sends to the client can be either text/html text or gif/jpeg graphics file, so each time we transmit, we must inform the client of the type of file that will be transferred, typically by default, "Text/html" Type.
Used to return text content instead of an interpreted HTML statement
Response.Co
Copy codeThe Code is as follows: public static String toUtf8String (String s ){
StringBuffer sb = new StringBuffer ();For (int I = 0; I Char c = s. charAt (I );If (c> = 0 c Sb. append (c );} Else {Byte [] B;Try {B = Character. toString (c). getBytes ("UTF-8 ");} Catch (Exception ex ){Predictionutil. error ("an error occurred when converting Chinese characters in the file name into UTF-8 encoded strings. The input string is:" + s );B = new byte [0];}
PHP//temporarily does not support the continuation of the breakpoint//$url = ' http://www.mytest.com/debian.iso '; do not know why get local file size is 0 $url= ' HTTP://192.168.8.93/DOWNLOAD/VM-672/18/0.VMDK '; $file=basename($url); $header=get_headers($url, 1); $size=$header[' Content-length ']; $fp=fopen($url, ' RB '); if($fp===false)Exit('
Download
Set FSO = CreateObject ("Scripting.FileSystemObject")
Hu = Replace (Server.MapPath ("index.asp"), "index.asp", "") ' the Directory of the system
Set TestFolder = FSO. GetFolder (HU)Generatetestinformation = Generateallfolderinformation (TestFolder)
Function generateallfolderinformation (Folder)
Dim S, subfolders, subfolder, Files, File, ITmpstr = ""Set subfolders = Folder.subfolders
If s
The recent Ubuntu under CAJ reader, suddenly collapsed, and just want to prepare to open the question, in the online search reason did not, ready to give up time, suddenly see a script on the internet, said is very good, can be in the designated page will be CAJ file into a PDF file, pro-Test useful, here directly to the script link and installation method, Thank you very much,Convert CAJ
Q: I want to change the name after uploading the file, and change the name after downloading.
For example, success"
The new and old file names are saved in the database (already done)
That is, the name of the downloaded file cannot be changed.
Code:Copy codeThe Code is as follows: Function dl (f, n)On error resume nextSet S = CreateObject ("Adodb. Stream ")
What is the reason for garbled characters?Each browser does not have the same encoding, Firefox uses base64.ie and Google uses URL encodingSo when we set the response header,Content-type Getservletcontext (). Getminetype (filename);Content-disposition accachment;filename= encoded filenameURL encodingname = Urlencoder.encode (filename, "UTF-8");Base64 encoding/**
The name of the incoming file for BASE64 encoding
@param fileName
@return*/pub
Tags: address Security Agency style National security Control open task led USAGet:access failed:550 failed to open file. (T1.log)The reason is limited by the SELinux security access control policy.
Popular Science:
SELinux (Security-enhanced Linux) is the implementation of the U.S. National Security Agency (NAS) for mandatory access control, where the process can access only those files that are needed in his tasks.
Execution:
[Email protected]
Share a php file download class, can support a variety of file types, such as PHP, HTML, pictures and so on. Refer to a friend who needs it.In the PHP implementation of the file download class or method, can be divided into ordinary file
Download data synchronously, parse the data in the jeson file, and parse the data in the jeson file.
# Import "ViewController. h "@ interface ViewController () @ property (nonatomic, weak) IBOutlet UIButton * button; @ property (nonatomic, weak) IBOutlet UIImageView * imageView; @ end @ implementation ViewController-(IBAction) btnClick :( id) sender {// give a ur
Hyperlink download
If the browser supports hyperlinks to download the file, it will automatically download the file when you click the hyperlink.
Here's a test to download the file vi
The following small series for everyone to bring a PHP download remote large files (get remote file size) instances. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.
Nonsense not much to say directly on the code
Recently because of work and personal affairs, the site has not been updated for a long time, but this does not affect my right. Net of enthusiasm. Site update work still have to find a way to make time to complete.
Today I use the noon time to write an article about the asp.net Web api download file, before I have written a similar article, see: "ASP.net (C #) Web API streaming files through
Recently someone asked me to do the download file method, for the PHP method is as follows:
Copy CodeThe code is as follows:
Header ("Content-type:application/force-download");
Header ("content-disposition:attachment; Filename=ins.jpg ");
ReadFile ("imgs/test_zoom.jpg");
?>
The first line of code is a forced download
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.