Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

RE : File upload for UTF-8 in ASP

Posted on 2009-02-17
8
Medium Priority
?
656 Views
Last Modified: 2012-05-06
Hi,

I would like to

1)upload the UTF-8 text file to web server
2) Open and validate the data one by one
3) Write the Log sheet in excel

My main concern is of UTF-8 data will not get broken while uploading , validating and writing log file.

Currently i am using upload.asp for my ansi characters.

Thanks
0
Comment
Question by:rajneesh1978
  • 4
  • 3
7 Comments
 
LVL 14

Expert Comment

by:_Stilgar_
ID: 23657652
If you're using the upload form element (<input type="upload" />) the file will be treated as binary and will be preserved. With FSO you should be able to read the text in it after it was uploaded with no difficulties. Just in case, you could save upload.asp as UTF-8 (instead of ANSI), but unless you're doing some heavy text processing there that won't be necessary.

Try that and let me know if something break. I don't think it will.
0
 

Author Comment

by:rajneesh1978
ID: 23668128
Can i have sample for the upload of UTF-8 txt file through ASP
0
 
LVL 14

Expert Comment

by:_Stilgar_
ID: 23668753
You said you already have upload script? Anyway, you can use this one:

http://www.aspemporium.com/codelib.aspx?pid=139&cid=4
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:rajneesh1978
ID: 23678053
I am able to upload the UTF-8 file but now the problem is how can i read the UTF-8 file contents line by line

Any help will be highly appreciated
0
 

Accepted Solution

by:
rajneesh1978 earned 0 total points
ID: 23791811
I am closing this question as it has been solved by myself.

I have used the stream object for reading instead of FSO, you cannot use FSO for reading UTF-8 data.
0
 

Author Comment

by:rajneesh1978
ID: 23791813
I am closing this question as it has been solved by myself.

I have used the stream object for reading instead of FSO, you cannot use FSO for reading UTF-8 data.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question