?
Solved

CSV files export with Classic ASP, special chars

Posted on 2008-06-09
5
Medium Priority
?
1,770 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

752 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