G
Guest
Hi all...
I need to create a CSV file from an application. That file has latin
characters such as á, Ã, ñ and so on. The separator character of the CSV is a
semi-colon (
When I create the file using:
StreamWriter f = new StreamWriter(file_name, false, Encoding.UTF8);
and when the file is closed I see that latin characters ara bad encoded
(they looks bad with strange symbols). When this happens I can open the CSV
file directly in Excel what recognizes the separator character.
In order to make latin characters be well encoded, I created the file using
Encoding.Unicode. This way, the file shows data with the right encoding and
latin characters look well. In this case, if I open the file in Excel, it
doesn't recognize the separator character, so all data is placed in the first
column. To solve it partially, I have to save the file with TXT extension,
and then to use the Excel wizard to open the file.
How can I create a file where the encoding include until extended ASCII
(8-bit per character)?
Thanks
Jaime
I need to create a CSV file from an application. That file has latin
characters such as á, Ã, ñ and so on. The separator character of the CSV is a
semi-colon (
When I create the file using:
StreamWriter f = new StreamWriter(file_name, false, Encoding.UTF8);
and when the file is closed I see that latin characters ara bad encoded
(they looks bad with strange symbols). When this happens I can open the CSV
file directly in Excel what recognizes the separator character.
In order to make latin characters be well encoded, I created the file using
Encoding.Unicode. This way, the file shows data with the right encoding and
latin characters look well. In this case, if I open the file in Excel, it
doesn't recognize the separator character, so all data is placed in the first
column. To solve it partially, I have to save the file with TXT extension,
and then to use the Excel wizard to open the file.
How can I create a file where the encoding include until extended ASCII
(8-bit per character)?
Thanks
Jaime