我有以下问题:
library(stringi)
x_1<-"P N001361/01"
x_2<-"Р N001361/01"
x_1==x_2
[1] FALSE
> stri_enc_mark(x_1)
[1] "ASCII"
> stri_enc_mark(x_2)
[1] "UTF-8"
然后我尝试:
stri_encode(x_1,"ASCII","UTF-8",to_raw=FALSE)==x_2
但这仍然行不通。也许有人可以建议如何使这两个字符串相同(我正在尝试将 x_1 与 x_2 合并)。