Friday, May 4, 2012

MS Office woes

Change the separator in all .csv text files

##########################################################################
In Microsoft Windows, click the Start button, and then click Control Panel.
Open the Regional and Language Options dialog box.
Do one of the following:
In Windows Vista, click the Formats tab, and then click Customize this format.
In Windows XP, click the Regional Options tab, and then click Customize.
Type a new separator in the List separator box.
Click OK twice.
 NOTE   After you change the list separator character for your computer, all programs use the new character as a list separator. You can change the character back to the default character by following the same procedure.


##########################################################################

','(comma ) is used as Separator for CSV file; regardless of 'List Separator' Setting in Control Panel. 

##########################################################################
SYMPTOMS
When you save your file as a Comma Separated Value (CSV) file from Excel, the s...
When you save your file as a Comma Separated Value (CSV) file from Excel, the separator (delimiter) that is used is not the character that you chose to be the List separator for your system. When this occurs, you do not receive a warning or error message.

CAUSE
You chose the same character for both your Decimal symbol and your List separat...
You chose the same character for both your Decimal symbol and your List separator in the Regional Settings of your system Control Panel . In this condition, Excel must substitute another character for the list separator to avoid a possible loss of information when the CSV file is saved.

WORKAROUND
Change either your List separator or your Decimal symbol in the Regional Settin...
Change either your List separator or your Decimal symbol in the Regional Settings , so that they are not the same character. To do this, follow these steps:
Click Start , point to Settings , and then click Control Panel .
Double-click Regional Settings or Regional Options . Click the Number (or Numbers ) tab.
In the Decimal symbols list, choose a character that is not the same as your list separator. Alternately, in the List separator list, choose a character that is not the same as your decimal symbol.
Click OK .
If you are prompted to restart the computer, do so.

##########################################################################

1 comment:

  1. Well, MS Excel generates same csv as openOffice; I am going to check my csv import script; something might be broken there.

    ReplyDelete