Unicode literal string Unicode literal string json json

Unicode literal string


If I understand your question correctly... add the at symbol (@) before the string to avoid the escape sequences being processed

 string s = @"here is my superscript: \u00B9";

http://msdn.microsoft.com/en-us/library/362314fe(v=vs.80).aspx


I like @NinjaNye's answer, but the other approach is to use a double-backslash to make it literal. Thus string s = "here is my superscript: \\u00B9"


is recommended you encode your string before send to server. You can encode using base64 or URLEncode in client and decode in server side.