Groups | Blog | Home
all groups > inetserver asp general > october 2004 >

inetserver asp general : Upload File / Component?


Aaron [SQL Server MVP]
10/27/2004 11:36:28 AM
Did you look at www.aspupload.com or www.softartisans.com ? They have the
two best upload components, IMHO, and if any of them will support your
requirements, I would bet it's them.

--
http://www.aspfaq.com/
(Reverse address to reply.)




[quoted text, click to view]

Alex
10/27/2004 11:31:46 PM
Dear all,

I am now creating an Content Management System which support 3
languages (English, Tranditional Chinese and Simplified Chinese). Before I
use the component (aspSmartUpload) to help me uploading photo and files. It
works for English and Traditional data; for Simplified Chinese Version, I
need to use unicode (nvarchar, nchar, ntext) to store the data in MSSQL;
however, I discover that the aspSmartUpload component can't get correct data
from the form so that all records become wrong coding after inserting into
the database. I would like to know are there any component which can
support storing unicode form data or how can I upload the file without any
component? Thank you for all of your help.


Alex Yung



Mike Levin
2/5/2005 6:05:19 PM
It's months later, but I just found this thread Googling. aspSmartUpload is an excellent component, IMHO. The trick to Unicode/utf-8 support is two-fold...

1. You must ensure that the page where the upload form resides has this meta tag...

META http-equiv="Content-Type" content="text/html; charset=utf-8"
(pointy brackets left out for posting)

2. You must put the following command before objectName.Upload...

objectName.CodePage = "utf-8"

That should do it!

Mike Levin
http://www.mike-levin.com

Posted via DevelopmentNow Groups
www.developmentnow.com/g
AddThis Social Bookmark Button