Displaying 3 results from an estimated 3 matches for "ud589".
2017 May 09
2
source(), parse(), and foreign UTF-8 characters
...n-native-encoding-in-r/
[4]
http://stackoverflow.com/search?tab=votes&q=%5br%5d%20encoding%20windows%20is%3aquestion
# Use one of the following:
id <- "Gl\u00fcck"
id <- "\u5e78\u798f"
id <- "\u0441\u0447\u0430\u0441\u0442\u044c\u0435"
id <- "\ud589\ubcf5"
file_contents <- paste0('"', id, '"')
Encoding(file_contents)
raw_file_contents <- charToRaw(file_contents)
path <- tempfile(fileext = ".R")
writeBin(raw_file_contents, path)
file.size(path)
length(raw_file_contents)
# Escapes the string
p...
2017 May 09
0
source(), parse(), and foreign UTF-8 characters
...stackoverflow.com/search?tab=votes&q=%5br%5d%20encoding%20windows%20is%3aquestion
>
>
>
> # Use one of the following:
> id <- "Gl\u00fcck"
> id <- "\u5e78\u798f"
> id <- "\u0441\u0447\u0430\u0441\u0442\u044c\u0435"
> id <- "\ud589\ubcf5"
>
> file_contents <- paste0('"', id, '"')
> Encoding(file_contents)
> raw_file_contents <- charToRaw(file_contents)
>
> path <- tempfile(fileext = ".R")
> writeBin(raw_file_contents, path)
> file.size(path)
> length...
2017 May 09
1
source(), parse(), and foreign UTF-8 characters
...5br%5d%20encoding%20windows%20is%3aquestion
>>
>>
>>
>>
>> # Use one of the following:
>> id <- "Gl\u00fcck"
>> id <- "\u5e78\u798f"
>> id <- "\u0441\u0447\u0430\u0441\u0442\u044c\u0435"
>> id <- "\ud589\ubcf5"
>>
>> file_contents <- paste0('"', id, '"')
>> Encoding(file_contents)
>> raw_file_contents <- charToRaw(file_contents)
>>
>> path <- tempfile(fileext = ".R")
>> writeBin(raw_file_contents, path)
>...