Programing/C#
c# unicodeString to unicodevalue
즐거운 개발자
2012. 12. 6. 14:02
반응형
private string GetUnicodeValue(string stringUnicode)
{
Regex regex = new Regex(@"\\[uU]([0-9A-F]{4})", RegexOptions.IgnoreCase);
return regex.Replace(stringUnicode, match => ((char)int.Parse(match.Groups[1].Value, NumberStyles.HexNumber)).ToString());
}