-
Notifications
You must be signed in to change notification settings - Fork 48
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
Special (German) characters #296
Comments
I'm willing to try suggestions, but this isn't an area I've dealt with much. Have you checked the forums (community.projectredcap.org) for a relevant discussion? Reading from REDCapThe raw text gets set to a data.frame almost immediately. So if there's a problem, I guess it's before REDCapR/R/redcap-read-oneshot.R Lines 239 to 242 in b25965c
And Lines 58 to 63 in b25965c
Writing to REDCapThis is also a pretty straight shot. I'm not intentionally changing the encoding or flattening to ASCII for the data itself (I am doing this for the column names though). REDCapR/R/redcap-write-oneshot.R Lines 96 to 102 in b25965c
TestingI've tried a few ways to test the results, but I met problems with different machines/OSes producing slightly different results. This is the current incomplete state. |
Interestingly, I have now read out the string in the MySQL database directly that is used by RedCap. I noticed that the special characters are basically transferred, but in quoted-printable format (https://en.wikipedia.org/wiki/Quoted-printable). |
Things are even getting more strange. I tried it on my Windows system with Tried it with Could you please provide an example of how to deal with the config_options? Thank you! |
|
@teigentler, do you have any more information? Issue #307 identified a limitation with config options, so it might improve your scenario if you're using 2+ options. I'm about to pull those changes into the master branch (update your machine with |
@teigentler, I hope that #307 a year ago fixed it. I'm closing this issue. Reopen it if you're still encountering the problem and are able to provide the info (described in the Feb 15, 2020 post). |
Hi there,
thank you very much for this great package; really appreciated.
I just ran into an issue when writing special German characters into RedCap. I tried it with config_options like this:
REDCapR::redcap_write(ds=reference,redcap_uri=url_server,token = token, config_options = list(encoding="ISO-8859-15"))
but it does not seem to work. All special characters are stripped out. Also setting encoding to UFT-8 did not solve the problem.
Any ideas?
Thank you in advance
Thomas
The text was updated successfully, but these errors were encountered: