Re: unicode CSV files
- From: "Michel Pierron" <michel.pierron@xxxxxxx>
- Date: Wed, 30 Aug 2006 12:11:30 +0200
Hi John,
I made some tests and if you don't really want the end user to have to go
through the import data routine for every file that gets created, your csv
file can be only with format ANSI or UTF-8.
Import & Export of a CSV file depends on the Regional & Language Options in
the Windows Control Panel (for English (United States) the separator is the
comma).
Regards,
MP
"John Clennett" <JohnClennett@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le
message de news: B2454726-8E33-4AD3-8554-3540CE744FD8@xxxxxxxxxxxxxxxx
I'm using Excel 2003 as well.
What I'm getting is that the dotnet application writes the csv file but
when
the file is double-clicked Excel says 'The file is not in recognizable
format' & doesn't give any option to open it other than all the data in a
single cell. I don't really want the end user to have to go through the
import data routine for every file that gets created.
John
"Michel Pierron" wrote:
Re John,
Which version of Excel do you have ?
The csv files are text files. With Excel 2003, if I separately create a
unicode (UTF-16 or UTF-8) txt file with the comma, semicolon or tabulator
like separator and that records it with the csv extension, when I open
this
file with Excel, I have the dialogbox allowing choice for the type of
data
(delimited or not) and the separator.
MP
"John Clennett" <JohnClennett@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le
message de news: B5179B7D-9924-4A05-B1CA-A4F9F04E2931@xxxxxxxxxxxxxxxx
Yes. Same problem when the file has a txt extension.
"Michel Pierron" wrote:
Re John,
If you rename your file with the txt extension and that you open it
with
Excel, do you have the same error ?
MP
"John Clennett" <JohnClennett@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans
le
message de news: DE419CF9-395F-458F-9141-DE99031EBEC7@xxxxxxxxxxxxxxxx
Hi Michel,
Opening in Word it prompts you to select the required encoding. Once
Unicode
is selected it opens OK.
Excel doesn't have the same prompt
John
"Michel Pierron" wrote:
Hi John,
Do you have the same problem if you to try to open this file with
Word
?
MP
"John Clennett" <JohnClennett@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit
dans
le
message de news:
6BB54E32-B77A-43F1-A68D-65044677FD5E@xxxxxxxxxxxxxxxx
I need to write unicode csv files from a dotnet application to be
opened
in
Excel.
I can write the files OK by setting
Response.ContentEncoding = System.Text.Encoding.Unicode
but when I try & open them in Excel it says 'The file is not in a
recognizable format'.
I haven't been able to see any settings to change the acceptable
formats.
Anyone any ideas as to how this can be done?
Thanks,
John
.
- References:
- Re: unicode CSV files
- From: Michel Pierron
- Re: unicode CSV files
- From: Michel Pierron
- Re: unicode CSV files
- From: Michel Pierron
- Re: unicode CSV files
- From: John Clennett
- Re: unicode CSV files
- Prev by Date: Re: Class modules: parametrize class object fields
- Next by Date: Re: Hide negative values!!!
- Previous by thread: Re: unicode CSV files
- Next by thread: RE: .OnAction set value
- Index(es):
Relevant Pages
|