OpenOffice Calc can not read a simple CSV file. Why?

前端 未结 3 1545
时光取名叫无心
时光取名叫无心 2021-01-25 03:35

I have a Web site (PHP) that generates a CSV file (text/csv) with the following content:

ID;E-Mail_User;Name;Applikation;Rolle;Auftragsdatum;Administrator
522;user@do         


        
相关标签:
3条回答
  • 2021-01-25 03:43

    CSV means C omma S eparated V alues, which is not what your document contains.

    Those are semicolons.

    If possible, change the PHP code to generate this instead (which is actually CSV):

    ID,E-Mail_User,Name,Applikation,Rolle,Auftragsdatum,Administrator
    522,user@domain,WXDUILAS,ABCD,XYZ,2009-03-04 05:00:09,user@domain
    

    ...or specify ; as the delimiter using the Text Import dialog.

    0 讨论(0)
  • 2021-01-25 03:55

    Add space after ID (i.e. "ID ").

    Not the perfect solution but worked for me.

    0 讨论(0)
  • 2021-01-25 04:06

    ID; in the first 3 characters of a file is the signature for a SYLK file. The fourth character can be a P, N or an E which flags certain information about how the rest of the file should be processed... so your "CSV" file is almost certainly being parsed as a SYLK file when that initial signature is read, and the remainder of the file is not valid SYLK format.

    0 讨论(0)
提交回复
热议问题