Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
var jsonString = String.Empty;

           context.Request.InputStream.Position = 0;
           using (var inputStream = new StreamReader(context.Request.InputStream))
           {

               jsonString = inputStream.ReadToEnd();
           }

i have read the data using above method but the unicode data are not is readable and showing ?????????????.
The text on
jsonString =[{"SMSCode":"NexGen","NewsType":"M","NewsId":37,"Title":"Welcome to Mobile","Content":"Unicode:- ??????? ?????? ?? |
\r\nNepali:- ?????????
\r\n
\r\nWelcome to NexGen App.
\r\nDescription of CoSys.
\r\n
\r\n
\r\nCoSys Financial Software, is a privately held software development company. Our company head office is in Kathmandu, Nepal. Currently, We offer nice IT and IT-Consultancy services in Customized Web Design Solutions, Software Design & Development, Search Engine Optimization and Engineering & 3D modeling services.
","NewsOn":"\/Date(1478628900000+0545)\/","ExpDays":0,"NewsFileName":"News_37.jpg","NewsFile":""}]

in place of ????????? i need the unicode format data.

What I have tried:

Could not read the data is correct format.
Posted
Updated 8-Nov-16 23:04pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900