pacificclimate/Rudunits2

Encoding issues on windows

Opened this issue · 3 comments

Posting as an image since GH seems to mangle it differently.
32612876-602afbd4-c537-11e7-8838-ea2c0b82435c

Not sure the best way to fix this. cross posted from r-quantities/units#73

Hmmmm, I agree that that looks... odd. Can you describe the desired behavior?

I would like ud.get.symbol to return a string such that Encoding(string) returns "UTF-8" (if appropriate), and I would similarly like that same string to then return TRUE for ud.is.parseable()

Not sure if it's related, but ud.set.encoding calls for "utf8" while Encoding calls for "UTF-8", it would be nice if ud.set.encoding accepted UTF-8" also so it's consistent with Encoding

Similar, but different presentation of the issue on Mac.

screen shot 2017-11-09 at 1 24 26 pm