Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CSV files export with Classic ASP, special chars

Posted on 2008-06-09
5
Medium Priority
?
1,774 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: 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!

Question has a verified solution.

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

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…
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/…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

636 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