0
때로는 다음과 같은 문자열로 작업해야하는 C# 응용 프로그램이 있습니다.C#에서 "string x27s"와 같은 문자열을 디코딩하는 방법은 무엇입니까?
"example\x27s string"
어떻게 디코딩합니까? 나는 27이 작은 따옴표 '
에 대한 ascii 코드이지만 UrlDecode()
은 그 문자열에서 작동하지 않는다는 것을 안다.
\ x 값을 %로 바꾸고 System.Web.HttpUtility.UrlDecode()
를 사용해야합니까, 아니면 다른 방법이 있습니까?
가능한 복제본 [json 문자열에 포함 된 HTML 인코딩 된 문자를 디코딩하는 방법] (http://stackoverflow.com/questions/1101532/how-to-decode-html-encoded-character-embedded-in-a- json-string) –