In R for Windows I can assign a unicode character as follows:
(u <- "\U0444")
# [1] "ф"
However, assigning the string to a data frame gives an unreadable output:
x <- data.frame(1)
setNames(x,u)
# <U+0444>
# 1 1
Session Info
R version 3.4.0 (2017-04-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 15063)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252