c# 으로 중국문자여부를 찾는데는 아래 함수를 사용하면 간단히 알 수 있습니다.
public static bool Any(this string value, UnicodeCategory category) => !string.IsNullOrWhiteSpace(value) && value.Any(@char => char.GetUnicodeCategory(@char) == category);
public static bool HasOtherLetter(this string value) => value.Any(UnicodeCategory.OtherLetter);
bool hasOtherLetter = text.HasOtherLetter();
발췌 : https://weblogs.asp.net/dixin/detect-chinese-character-in-unicode-string
c# 오픈 소스 CsQuery 알아보자 (complete CSS selector engine, HTML parser, and jQuery port for C# and .NET 4. ) (0) | 2016.05.16 |
---|---|
c# ExpandoObject 함수와 XElement 비교하기 (0) | 2016.05.16 |
c# unicode 코드 문자열 중 중국어 체크 방법 (0) | 2016.05.15 |
DateTime? 의 nullable 에 null 넣는 방법 (0) | 2016.04.22 |
Windows Service 만들기 (vs 2015) 윈도우 서비스 (0) | 2016.04.08 |
visual stduio 2015 의 배포 msi 만들기 (0) | 2016.04.01 |
본문과 관련 있는 내용으로 댓글을 남겨주시면 감사하겠습니다.