Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

CSV files export with Classic ASP, special chars

Posted on 2008-06-09
5
Medium Priority
?
1,779 Views
Last Modified: 2011-10-19
HI All

I'm exporting data from Oracle DB to CSV files using Classic ASP. All is good here except some issues with special chars. The Special chars get garbled when the file size is increasing.

Look at my code.. & attached CSV files

The lines in the code are the options I tried.

The special chars in this row is part of the CSV file

"testing special chars dès 196 vol+ hôtel"

is completely getting junk when the file size is big (may be 1500 records). But when the file size is small (may be 20 records) it is perfectly good.

BAsed on some parameters (user selection) in the webpage & clicking on the submit button, I'm calling an ASP file that creates the CSV file.

Plz help me. I badly need this..
Thanks
Bobbie
' Create the CSV file
Response.Clear
Response.ContentType = "text/plain;charset=utf-8;"
'Response.AddHeader "Content-Type", "text/csv;charset=UTF-8"
Response.AddHeader "Content-Disposition", "attachment;filename=Data.csv"
'Response.CharSet = "utf-8"
 
' Writing data
Response.write data

Open in new window

GoodFile.txt
0
Comment
Question by:tn_bobbie
  • 4
5 Comments
 

Author Comment

by:tn_bobbie
ID: 21745336
Can someone plz help me??

Bobbie
0
 
LVL 15

Expert Comment

by:dosth
ID: 21748991
i dont understand the request, you mean you need a code to generate csv files?
0
 

Author Comment

by:tn_bobbie
ID: 21750903
Hi,

I have all the working code for generating the CSV files. All is good till I export plain English chars. The problem occurs when I have special chars (non-english chars) in the exported csv files.

The non-english chars look good when the exported file size is small (may be 15 records in the exported csv file). But when the file size grows (may be 1000 records in the exported csv file), the non-english chars get garbled.

Look at the code I have to export the csv files.

Thanks
Bobbie
0
 

Author Comment

by:tn_bobbie
ID: 21761920
What happened to the Experts Exchange? No posts for the past 2 days??? This is very stunning & this is the first time I'm seeing this in EE. If EE can't help me, who else can.

Some one plz help me..
Bobbie
0
 

Accepted Solution

by:
tn_bobbie earned 0 total points
ID: 22212753
Moderators, Plz close this question..

Bobbie
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
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

810 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