c# - Japanese unicode in string -
this question has answer here:
- unicode string literals in c# vs c++/cli 2 answers
how store japanese character in string without slash?
string jap ="\\x30f8";
prints "\x30f8" while
string jap = "\\\x30f8";
prints "\ヸ"
only 1 backslash necessary in hexadecimal escape sequence:
string text = "\x30f8";
you can use unicode escape sequence:
string text = "\u30f8";
Comments
Post a Comment