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

Safer handling of 'illegal' characters in TSV input. #16

Open
DesiQuintans opened this issue Dec 5, 2023 · 0 comments
Open

Safer handling of 'illegal' characters in TSV input. #16

DesiQuintans opened this issue Dec 5, 2023 · 0 comments

Comments

@DesiQuintans
Copy link
Owner

DesiQuintans commented Dec 5, 2023

A few times now, I've gotten hard-to-debug errors caused by extended characters in column renames and variable descriptions. The most recent one was caused by in a variable label that caused describe_with_dictionary() to fail.

TSV input should always be converted. Potential column renames should probably be passed through iconv(c(...), to = "ASCII//TRANSLIT"). Potential variable labels and factor levels should probably be passed through iconv(c(...), to = "ASCII", sub = "c99"). The latter converts extended characters into "\\u00b0" codes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant