Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if (str.Contains("QueueResponse_limit.json"))
{
QAfileName = str;
// break;
}
C#
Stream stream = assembly.GetManifestResourceStream(QAfileName);
                using (var reader = new StreamReader(stream, Encoding.UTF8))
                {
                    string json = reader.ReadToEnd();
                    queryList = JsonConvert.DeserializeObject<List<QueryResponseModel>>(json);
                    // Do something with the value
                }



the above code i have Deserialize the Json and display the data in grid but not dispay the phonotic symbol text Actual text is PARAMÉDICO but display PARAM?DICO

how to solve that please anyone help me

What I have tried:

if (str.Contains("QueueResponse_limit.json"))
{
QAfileName = str;
// break;
}
C#
Stream stream = assembly.GetManifestResourceStream(QAfileName);
                using (var reader = new StreamReader(stream, Encoding.UTF8))
                {
                    string json = reader.ReadToEnd();
                    queryList = JsonConvert.DeserializeObject<List<QueryResponseModel>>(json);
                    // Do something with the value
                }



the above code i have Deserialize the Json and display the data in grid but not dispay the phonotic symbol text Actual text is PARAMÉDICO but display PARAM?DICO

how to solve that please anyone help me
Posted
Updated 3-Aug-16 22:17pm

1 solution

This means that the encoding is different from the encoding you expected. You may experiment with other encodings (i.e. replace Encoding.UTF8), or ask the people who wrote the service supplying the json data which encoding they use.
 
Share this answer
 

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