Set character_set_client= ' GBK ';
Set character_set_connection= ' GBK ';
Set character_set_database= ' GBK ';
Set character_set_results= ' GBK ';
Set character_set_server= ' GBK ';
Select ' 2 ' into outfile ' c:\\ is \\22b.txt ';
It should be a lot of people will encounter this problem, the last written file name garbled.
In fact, as long as the Chinese with the URL encoding (GBK), here is the GBK format of the URL encoding, most of the tool URL encoding is UTF8 format.
For example:
"Chinese path" =%e4%b8%ad%e6%96%87%e8%b7%af%e5%be%84 URL encoding in//UTF8 format
"Chinese path" =%d6%d0%ce%c4%c2%b7%be%b6 URL encoding in//GBK format
This will be easy to solve the injection point permissions high, but encountered the problem of Chinese path
To provide an online coding site:
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>http://www.mytju.com/ Classcode/tools/urlencode_gb2312.asp
This article is from "My World, I am the director." "Blog, be sure to keep this provenance http://biock.blog.51cto.com/4643304/1865191
Select INTO OutFile path contains Chinese solutions when writing files