Error encoding Korean on R

Asked 2 years ago, Updated 2 years ago, 102 views

Install R studio in English OS

When importing data in Korean from mssql DB

It's all broken. ㅜㅜ <

I'm trying to change the language setting, but I get the following error message.

How should I solve the Korean encoding problem in the English OS?ㅜ <

Please answer me.

Sys.getlocale()

[1] "LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252"

Sys.setlocale("LC_ALL","ko_KR.UTF-8") [1] "" Warning message: In Sys.setlocale("LC_ALL", "ko_KR.UTF-8") : OS reports request to set locale to "ko_KR.UTF-8" cannot be honored

r encoding

2022-09-21 17:19

1 Answers

Try it like below :) There was the same problem (Window10, English OS) but it was solved.

Sys.setlocale("LC_ALL", "korean")


2022-09-21 17:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.