R version 4.5.0 RC (2025-04-03 r88103 ucrt) -- "How About a Twenty-Six" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x = "Open Bar $300 \u5564\u9152\u3001\u6C23\u9152 \u4EFB\u98F2" > print(x) [1] "Open Bar $300 啤酒、氣酒 任飲" > Encoding(x) [1] "UTF-8" > library(RJSONIO) > fromJSON(paste('{"tweet":"', x, '"}', sep = '')) tweet "Open Bar $300 啤酒、氣酒 任飲" > > > > proc.time() user system elapsed 0.17 0.06 0.17