I have developed a web application to upload and download files. Filename and file information are stored in database. Also, these files and other file information are displayed in a gridview. The website is localized for Chinese and Japanese languages.
I want the users to be able to enter Chinese and Japanese filenames as well. In Web.config file, I have entered this
~Manish~
Please Mark as Answer, if you find this helpful.
Please don't ask me questions via private message or email. Use the forums instead. That's what they are here for.
I had thought this would be more complicated than this. But adding the above line in web.config and using nvarchar as the datatype for all the parameters in queries, it works!
KhD
Member
97 Points
42 Posts
Using Chinese and Japanese characters as file name in multi-language website
Aug 04, 2011 09:11 AM|LINK
I have developed a web application to upload and download files. Filename and file information are stored in database. Also, these files and other file information are displayed in a gridview. The website is localized for Chinese and Japanese languages. I want the users to be able to enter Chinese and Japanese filenames as well. In Web.config file, I have entered this
How can this be done? I read in some forums that Server.UrlEncode can be the solution, but how to use this in the application?
Also, which encoding will be the best for this?
Please help!!
</div>manishgvshar...
Contributor
4347 Points
831 Posts
Re: Using Chinese and Japanese characters as file name in multi-language website
Aug 04, 2011 09:34 AM|LINK
See this article
http://www.codeproject.com/KB/aspnet/localization_websites.aspx
Please Mark as Answer, if you find this helpful.
Please don't ask me questions via private message or email. Use the forums instead. That's what they are here for.
KhD
Member
97 Points
42 Posts
Re: Using Chinese and Japanese characters as file name in multi-language website
Aug 05, 2011 04:11 AM|LINK
I had thought this would be more complicated than this. But adding the above line in web.config and using nvarchar as the datatype for all the parameters in queries, it works!