Problem:
In the Tomcat server environment, when you open the browser to download the XLS and rarfile, open it directly in the browser and garbled characters appear.
Solution:
In fact, it is very simple. You only need to add several lines of code to the Tomcat 5.0 _ home/CONF/Web. xml file.
In addition, the Code can download the mime.txt, Web. xml file, and, don't forget,
1) Restart Tomcat2) Clear your local ie cache by using the tool-Internet Options-browsing history-Delete.When you open the
Copy CodeThe code is as follows:
#!/usr/bin/env python
# Filename:backup_ver1.py
Import OSImport time
# 1. The files and directories to is backed up is specified in a list.#source =['/home/swaroop/byte ', '/home/swaroop/bin ']source=[' d:\\filecopier\\*.* ', ' d:\\jeecms_doc\\*.* ']# If you're using Windows, use source=[r ' C:\Documents ', R ' D:\Work ') or something like that
# 2. The backup must is stored in a main backup directory#target_dir = '/mnt/e/backup/' #Remember to theTarget_dir= '
P7zip 9.20 does not support files in rar format after installation. You need to install other files. First download two source code packages.
Http://sourceforge.net/projects/p7zip/files/p7zip/9.20.1/
P7zip_9.20.20.src_all.tar.bz2 and p7zip_9.20.20.x86_linux_bin.tar.bz2
Decompress p7zip_9.20.src_all.tar.bz2
Decompress p7zip_9.20.20.x86_linux_bin.tar.bz2,
Go to the extracted folder p7zip_9.20.1.
After the./install. Sh command is executed, a prompt
Tag: style blog HTTP color file 2014There are many ways to encrypt files.Hide the compressed file to an image, That is, no one will doubt that the image is actually a compressed package, so it is a good way to "encrypt" important files.The method is as follows:First, copy the compressed package name to the root directory of drive D. Run CMD and enter:Copy/B D: 1.jpg+ D: 2.rar D: 1.jpg. press enter to run the command. At this time, this image is not ju
Sometimes the compressed files downloaded from the Internet may be inexplicably damaged, and an "unpredictable compressed file end" warning will appear during decompression. The solution is to download the software (Advanced RAR repair) and fix it. This software is not small, but powerful. It can be fixed if the compressed package is damaged.
Source: http://hi.baidu.com/outh/blog/item/6ed562fec2da3f235d600856.html
==========
Occasionally
Maybe i
verification, to ensure that data remains in place when the client active script is disabledVerify. The disadvantage is increased server pressure.3) database constraint validation, this is a special solution, such as the Web site in the process you can not update the site. All the pressureare on the database, too many constraints can affect the responsiveness of the site.In addition, the data validation of ASP. NET can be expanded freely to meet the needs of different situations.Custom data val
This paper illustrates the method of C # to implement RAR compression and decompression files. Share to everyone for your reference. The specific analysis is as follows:
This program uses the WinRAR program to compress files, and command line syntax can refer to WinRAR Chinese help.
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26-27--28 29---30 31--32 33 34 35 36 37 38-39 40 41 42 45 46 47 48 49 50 51 52 53 54 55
WinRAR can contain annotation information when making a compressed file. When you download the RAR compressed files from the Internet, when the decompression operation, or run the files contained therein, it is best to pay attention to the annotation information, may be included in the annotation information such as registration code, the use of the method and other important content.
If the compression package is more, look at the annotation
1, install a compression software, there are many online. WinRAR, 360 compression, good pressure can be;
2, we take bandizip compression software for example, after installation, click RAR file will be prompted with what program open, choose Bandizip on it;
3, installed the icon becomes normal, the file icon is not related to the problem, the installation has let you select the file associated, you download a winrar software.
In many cases,
If we are using a managed server it is usually necessary to implement file upload download (instead of FTP function for remote file management) has improved the efficiency of file processing the following program code enables automatic decompression of files
The //////uncompress the specified RAR file. //////////// public void Decompressrar (string rarfiletodecompress, String directorytosave, bool deleterarfile) { String winrarexe = Server.MapPat
1. Right-click the file to be compressed, select Add to compressed file.
2. Enter the "compressed file name and parameters" of the Operation page, set the "Compressed Files format" and "compressed to volume, size" (General selection of RAR format, compression volume size according to the size of the file to compress and the number of compressed components, such as this example, To compress the file 8.37MB, set the size of each volume to 1M, y
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 value to "0" if there is no FAVORDBCS right click New [string value]
or run the following reg
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.