-
-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export: downloaded Excel file does not open and Csv file does not support utf-8 character set #1537
Comments
Can you please post some Turkish content, so I can test with it?! |
[Book1.xlsx](https://github.com/kevinpapst/kimai2/files/4307062/Book1.xlsx)
This: "Merhaba bu bir türkçe içeriktir. ÜĞIİŞÇÖçöğiş"
Thanks Kevin
Kevin Papst <notifications@github.com>, 9 Mar 2020 Pzt, 17:06 tarihinde
şunu yazdı:
… Can you please post some Turkish content, so I can test with it?!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1537>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH3UXIOVLQKXIXEWCNRHFTTRGTZUXANCNFSM4LEJPJUA>
.
--
Furkan TOLU
Gsm: +90(546) 692 0712
www.furkantolu.net
|
Where exactly did you add these characters?
The only problem I saw was with CSV in Excel, which did not use UTF8. |
Hi Kevin,
I experimented on the demo. The Excel file worked flawlessly and supports
Turkish characters. The CSV file worked, but does not support Turkish
characters.
I installed Kimai2 1.7 stable version via FTP. What could be the source of
this problem?
Thanks.
Kevin Papst <notifications@github.com>, 9 Mar 2020 Pzt, 18:12 tarihinde
şunu yazdı:
… Where exactly did you add these characters?
I added timesheet record and exported that.
- XSLX worked fine for me with Apple Numbers, LibreOffice and Excel
- CSV worked for me in Apple Numbers, LibreOffice, Atom
The only problem I saw was with CSV in Excel, which did not use UTF8.
But I never use Excel, so I don't know how to change the encoding in there.
Can you please try the demo https://www.kimai.org/demo/ and verify if the
problem exists there as well.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1537>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH3UXIPVI7ZT66ZF34PNCYLRGUBMNANCNFSM4LEJPJUA>
.
--
Furkan TOLU
Gsm: +90(546) 692 0712
www.furkantolu.net
|
Not entirely sure, but I doubt that it is related to the Kimai version. Maybe your PHP does not support the multibyte extension? |
Excel again, I love it ;-) Excel depends on a BOM header to identify UTF8 files correctly while the rest of the world not really does (and most PHP functions do not force or support it). Different approaches (depending on the Excel version): Excel: Change default import formatChange the default import format for excel using a registry edit, i.e. for newer Excel (will work with Excel 15.0 but not 16.0 anymore):
Excel: Change encoding during importIf you double click the CSV you will always import the CSV without being asked the default encoding in newer versions. The proper way would be to create a blank spreadsheet, go to the Data tab and import from Text/CSV and specify UTF-8 there. Add bom to CSV exportAdd hex apt install icu-devtools
uconv --add-signature kimai-export.csv > kimai-export-fixed.csv You could also try to fix it with other things, maybe a standardized ICU package from PHP. But this solution must be checked against older Excel versions prior 2013 to see if that does not introduce other options. Or split the CSV formats into distrinctive (UTF-8 with BOM, UTF-8 without BOM, ISO). |
Hahaha, Microsoft for the win 😁 |
Checked Excel myself, looks clean. Edge case is only UTF-8 CSV export to Excel that is reproducible. |
Added that issue to the documentation for the CSV invoice format. Closing here, as I don't see what else we could do. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai. |
Opening excel file and supporting csv file with Turkish characters
1- The error of the downloaded excel file: Excel cannot open the file... because the file format or file extension is not valid. 2- CSV file content does not support UTF-8 characters.
kimai-export (3).xlsx
Steps to reproduce
The text was updated successfully, but these errors were encountered: