Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upNeed to mark the string returned as UTF-8 #278
Conversation
|
Sorry, there's a bug... The NA Date value now returns "1970-01-01". I'll fix this and let you know... |
|
It's weird... If I compiled the package from the master branch (w/o this PR) on my computer, it still returns "1970-01-01" but the CRAN version returns the correct value "NA". I have no clue at all. So I think it's unrelated to this PR and the PR itself should be safe... |
|
I believe the "Date Issue" is caused by the PR #273 Lines 134 to 136 in 6e52cec The default value created by
|
|
@eddelbuettel I address the above issue in another PR #279 And as usual, I tested it and works on my computer. |
|
Yes, marking as utf-8 is a good idea. Having a similar issue in another project as it happens. I cannot currently test. @johnlaing Any chance you could take a peek? |
|
Not going to be able to get to this during the day, will try to have a look this evening. |
|
@shrektan This is great, thanks for your contribution here and also on the date regression. |
|
Seconded, and FWIW I just got a very similar "mark as UTF-8" PR for RcppTOML. Being where we are we something forget not that all encodings as as "baked in" as the one we use here. |
Hi @eddelbuettel , first of all, thanks for making this great package.
Occasionally, we need to return non-English characters from Bloomberg (as the example below). However, because the current version doesn't mark the encoding as UTF8 explicitly, it causes trouble on a Windows machine, where the native encoding varies.
This PR will fix this. I have manually compiled the PR version and tested it on the Bloomberg computer in the office and find no problems by far.
If there's more need to be done, please let me know.
Thanks.
Example