c# - Convert supplementary characters to Chinese characters -
i have string of supplementary characters:
ˤÈí¹Ä that need convert chinese characters. using notepad++ able setting encoding ansi, paste above supplementary characters, change encoding simplified chinese (gb2312) following correct answer:
摔软鼓 is there way convert supplementary characters chinese characters using c#? how can mimic function notepad++ using c#?
using notepad++ able setting encoding ansi, paste above supplementary characters, change encoding simplified chinese (gb2312)
this want do:
var bytes = encoding.getencoding("windows-1252").getbytes("ˤÈí¹Ä"); var text = encoding.getencoding("gb2312").getstring(bytes); // 摔软鼓
Comments
Post a Comment