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
image url my machine
other machine
image url other machine
what issue? encode issue?
Comments
Post a Comment