현재 URL에 삽입 할 문자열을 인코딩하려고합니다. 내 문제는 내 문자열에 백 슬래시가 포함되어 있으면 실패하는 것 같습니다. 나는 URLencode, curlEscape (RCurl에서), curlPercentEncode (RCurl에서) 함수를 사용하여 지금까지 4 가지 접근법을 시도했지만 그 중 아무 것도 성공하지 못했다.URL에 R/RCurl을 사용하여 백 슬래시 인코딩
> URLencode("hello\hello")
Error: '\h' is an unrecognized escape in character string starting ""hello\h"
> curlEscape("hello\hello")
Error: '\h' is an unrecognized escape in character string starting ""hello\h"
> curlPercentEncode("hello\hello")
Error: '\h' is an unrecognized escape in character string starting ""hello\h"
> curlPercentEncode("hello\hello", amp=TRUE)
Error: '\h' is an unrecognized escape in character string starting ""hello\h"
'URLencode ("hello \\ hello")'를 사용해 보셨습니까? –