You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create some output with non-ASCII characters, e.g. this on German or Fresh Windows:
res<-processx::run("systeminfo", c("/FO", "csv"), encoding="windows-1252")$stdout
substr(res, 2200, 2300)
#> [1] "5d4\",\"Es wurde ein Hypervisor erkannt. Features, die f\u0081r Hyper-V erforderlich sind, werden nicht ange"
So the \u0081 is not converted, apparently, even though that seems to be the default encoding:
According to the information on Microsoft's and the Unicode Consortium's websites, positions 81, 8D, 8F, 90, and 9D are unused; however, the Windows API MultiByteToWideChar maps these to the corresponding C1 control codes. The "best fit" mapping documents this behavior, too.[15]
However, 850 seems to work well:
res<-processx::run("systeminfo", c("/FO", "csv"), encoding="850")$stdout
substr(res, 2200, 2300)
#> [1] "5d4\",\"Es wurde ein Hypervisor erkannt. Features, die für Hyper-V erforderlich sind, werden nicht ange"
The text was updated successfully, but these errors were encountered:
Create some output with non-ASCII characters, e.g. this on German or Fresh Windows:
So the
\u0081
is not converted, apparently, even though that seems to be the default encoding:This might be some
systeminfo
or Windows thing, because according to https://en.wikipedia.org/wiki/Windows-1252\x81
should be unused:However,
850
seems to work well:The text was updated successfully, but these errors were encountered: