Skip to content
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

Ampersands ("&") are read as "&" #435

Closed
nicojx opened this issue Nov 24, 2022 · 1 comment
Closed

Ampersands ("&") are read as "&" #435

nicojx opened this issue Nov 24, 2022 · 1 comment
Labels
bug 🐛 Something isn't working
Milestone

Comments

@nicojx
Copy link

nicojx commented Nov 24, 2022

Reading data containing ampersands ("&") results in the ampersand being read as "&". This only seems to happen when the file is read from disk. Might also affect other special characters.

library(openxlsx2)
wb <- wb_workbook()$add_worksheet("Test")$add_data(dims = "A1", x = "A & B")$save("ampersand.xlsx")
read_xlsx(wb, sheet = "Test")
# A & B
read_xlsx("ampersand.xlsx", sheet = "Test")
# A &amp; B
@JanMarvin JanMarvin added the bug 🐛 Something isn't working label Nov 24, 2022
@JanMarvin JanMarvin added this to the v0.4 milestone Nov 24, 2022
@JanMarvin
Copy link
Owner

Thanks for the report! Fixed in #436 If the CI is green, I'll merge it straight away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants