c# - Japanese unicode in string -


this question has answer here:

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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -