-
Notifications
You must be signed in to change notification settings - Fork 76
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
Corrupted xlsx file when a string contains \024 #486
Comments
Hi @Mkranj , please try if this is resolved with openxlsx2. There are known issues with openxlsx. |
Hi, thank you for the suggestion. I'll have to do some research for applying this to other programs, since I depend on other openxlsx functionalities that I hope are also available in openxlsx2, as well as taking the time to rewrite code to use the new package API. |
Great that it works! As a fallback you could write the file with openxlsx2 and read it with openxlsx. But lots of efforts went into openxlsx2 and it’s very unlikely that they get backported to openxlsx. Personally openxlsx is more or less in just maintenance mode. A few PR that are simple can be merged, but other than that, it’s now legacy software. |
I see, thank you for your help once more :) |
Describe the bug
I'm creating an Excel file based on data in a database. I have some strings describing addresses, so UTF8 characters are to be expected. For a certain subset, the exported xlsx file gets corrupted. I've narrowed it down so that the problem occurs when any string contains the characters
\024
.To Reproduce
And try to open the resulting file.
Expected behavior
File opens with the provided data.
Additional context
I'm getting the data from a database, so I can't really control if such characters ocurr. Ideally I'd like to avoid string substitutions before saving as an Excel file.
I also use the data as part of a Shiny application and there are no issues rendering to a table there.
The text was updated successfully, but these errors were encountered: