json - UTF-8 to Unicode using C# -


help me please. have problem encoding response string after request:

var m_refwebclient = new webclient(); var m_refstream = m_refwebclient.openread(this.m_refuri); var m_refstreamreader = new streamreader(this.m_refstream, encoding.utf8); var m_refresponse = m_refstreamreader.readtoend(); 

after calling code string m_refresponse json source substrings \u041c\u043e\u0439. it? how encode cyrillic? tired after lot of attempts.

corrected

am missing here?

what it?

"\u041c\u043e\u0439" string literal representation of Мой. don't have more, strings unicode, you've got cyrillic already.

(unless mean literally have sequence \u041c\u043e\u0439, ie. value "\\u041c\\u043e\\u0439". wouldn't result of encoding error, happening @ server, example returning json string, since json , c# use same \u escapes. if that's what's happening use json parser.)


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -