c# - Encoding UTF8 weird characters? -


i working tapi api in c#. 1 of call property has byte[] data , converting string format. string json format. working fine machine. when ran same code different machine string (json) format showing in weird characters.

please see both below

code

// event handler called when new incoming call received. void onincomingcall(object sender, tapieventargs args) {    // display message in log    string msg;    msg = string.format("incoming call {0} {1} on line '{2}'. , {3}",         args.call.calleridname, args.call.callerid,         args.line.name.clone(),args.call.tag);    msg = msg + "\n" + string.format("devicespecificinfo data {0}",          system.text.encoding.utf8.getstring(args.call.devicespecificinfo));                      addtolog(msg);                 } 

my machine

enter image description here

image url my machine

other machine

enter image description here

image url other machine

what issue? encode issue?


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -