Solved

CSV files export with Classic ASP, special chars

Posted on 2008-06-09
5
1,753 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 Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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 demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now