Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When I open CSV files (in ANSI format) in Excel programmatically, it works.
However, once I change my CSV file to UTF-16 Little Endian, Excel does not parse the commas and quotes correctly. The data all show up in the first column. I found that if I use tabs instead of commas, Excel recognizes the columns again. Is this a known issue? Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
In a normal situation, Excel is going to use its default code page to open a UTF CSV files from Windows Explorer. The file needs to be opened from Excel to have it go through the Text Import Wizard so the proper encoding can be set. Some additional information on encoding: When you save the file as Unicode, the comma in the CSV file is double byte and is not being detected by the default code page. This is why all of the fields are consolidated when the file is opened from Explorer, no delimiters are not detected. Basically, the behavior is by design and Excel is acting normally. If you still have any concern, please feel free to post here. Best regards, Perter Huang Microsoft Online Partner Support Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Peter,
First, thanks for your answer. I have a quick question, related to this topic: Is there a way to specify to Excel that the CSV is in UTF-16, so that it takes the specified encoding instead of the default code-page ? Thanks, Ingrid. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
So far we have no such feature in Excel. Anyway if you want, you may try to submit a mswish in the link below. Visit the following Microsoft Product Feedback Web site: "http://register.microsoft.com/mswish/suggestion.asp" and then complete and submit the form. Also I think so far as a workaround you may try to convert the csv into ansi coding. e.g. you can use notepad to do the job. Best regards, Perter Huang Microsoft Online Partner Support Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Peter,
I developed an application that exports data (UNICODE coded) to a csv file. I need to document that Excel consolidates all of the fields because it doesn't detect the separator and not for a bug in my application. Is there some official Microsoft documents or articles that explain that problem? Thanks in advance. Best regards, Francesco. |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Francesco,
How are you saving your file to .csv ? NickHK "kekkonen" wrote in message om... Hi Peter, I developed an application that exports data (UNICODE coded) to a csv file. I need to document that Excel consolidates all of the fields because it doesn't detect the separator and not for a bug in my application. Is there some official Microsoft documents or articles that explain that problem? Thanks in advance. Best regards, Francesco. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
emailing files from excel, the files will not go until I open up . | New Users to Excel | |||
how do I toggle between 2 open excel files and leave both open | Excel Discussion (Misc queries) | |||
How to change default Open/Files of Type to "Microsoft Excel Files | Excel Discussion (Misc queries) | |||
I cant open files unless I open the Excel program first | Excel Discussion (Misc queries) | |||
Can not open excel files without open application | Excel Discussion (Misc queries) |