上传文件名中包含Unicode字符的文件 [英] Upload file having Unicode characters in filename

查看:117
本文介绍了上传文件名中包含Unicode字符的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是asp.net开发人员,我使用.net fileupload控件来上传我的Web应用程序中的文件。当我尝试上传其文件名中包含unicode字符的文件时,其字符会更改为某个问号和零个字符。那么在使用.net fileupload控件时如何在文件名中保留我的unicode字符。

Hi,

I am asp.net developer and i am using .net fileupload control to upload files in my web application. When i try to upload a file having unicode characters in its file name its characters gets changed to some question mark and zero characters.So how can i retain my unicode characters in filename while using .net fileupload control.

推荐答案

问题与页面编码有关,因此您必须在页面的 head 区域中添加下一行:



< meta http-equiv =Content-Typecontent =text / html; charset = utf-8>
The problem is related with the page encoding, so you have to add the next line in the head zone of your page:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">


这篇关于上传文件名中包含Unicode字符的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆