_대문 | 방명록 | 최근글 | 홈피소개 | 주인놈
FrontPage › Encoding

Encoding 문제 #

utf-8, unicode, 한글

Sys.getlocale(category = "LC_ALL")
Sys.setlocale("LC_COLLATE", "C")
Sys.setlocale("LC_COLLATE", "Korean_Korea.949")


iconv('pretty\u003D\u003Ebig', "UTF-8", "CP949")
iconv('pretty\u003D\u003Ebig', "UTF-8", "ASCII")

UTF-8 to Unicode #

library("Unicode")
utf8_to_unicode <- function(utf8_string){
    for(i in 1:length(utf8_string)){
        utf8_string[i] <- paste(as.character(utf8ToInt(utf8_string[i])), collapse=",")
    }
    return (utf8_string)
}

댓글 남기기..
이름: : 오른쪽의 새로고침을 클릭해 주세요. 새로고침
EditText : Print : Mobile : FindPage : DeletePage : LikePages : Powered by MoniWiki : Last modified 2018-04-13 23:12:53

인생은 한 권의 책과 같다. 어리석은 이는 그것을 마구 넘겨 버리지만 현명한 이는 열심히 읽는다. 인생은 단 한 번만 읽을 수 있다는 것을 알기 때문이다. (상 파울)