— special character decoding

STOOSTEDENCY

New Member
In our Jersey REST service, we are sending back \[code\]—\[/code\] to the browser client, as an element in a JSON object. But the browser JQuery client which is consuming my service, instead of decoding it to a literal \[code\]-\[/code\] is displaying it as \[code\]—\[/code\], the encoded value itself.Wondering if I have to make any settings change in Jersey or JSON resolver for the client browser to understand it as a literal \[code\]-\[/code\]. I am sending the output JSON from Jersey in UTF-16 format. Appreciate any help.
 
Top