In an app retrieving json from external API (Instagram if that matter) I've got this kind of json returned:
{"caption":"\ud835\udc2f\ud835\udc1e\u0301\ud835\udc25\ud835\udc28 \n\n \ud835\udc2f\ud835\udc28\u0302\ud835\udc2d\ud835\udc2b\ud835\udc1e\ud835\udc2c \n\n \ud835\udfd1\ud835\udfd2\ud835\udc1e\u0300\ud835\udc26\ud835\udc1e \ud835\udc1e\u0301\ud835\udc1d\ud835\udc22\ud835\udc2d\ud835\udc22\ud835\udc28\ud835\udc27"}
using Newtonsoft.Json;
var json = "{\"caption\":\"\\ud835\\udc2f\\ud835\\udc1e\\u0301\\ud835\\udc25\\ud835\\udc28 \\n\\n \\ud835\\udc2f\\ud835\\udc28\\u0302\\ud835\\udc2d\\ud835\\udc2b\\ud835\\udc1e\\ud835\\udc2c \\n\\n \\ud835\\udfd1\\ud835\\udfd2\\ud835\\udc1e\\u0300\\ud835\\udc26\\ud835\\udc1e \\ud835\\udc1e\\u0301\\ud835\\udc1d\\ud835\\udc22\\ud835\\udc2d\\ud835\\udc22\\ud835\\udc28\\ud835\\udc27\"}";
var entity = JsonConvert.DeserializeObject<TestEntity>(json);
if (entity != null)
{
var caption = entity.Caption;
}
public class TestEntity
{
public string Caption { get; set; }
}
When I deserialize this example using the above code in a simple console app, the string I get works well when I paste it here ("𝐯𝐞́𝐥𝐨 \n\n 𝐯𝐨̂𝐭𝐫𝐞𝐬 \n\n 𝟑𝟒𝐞̀𝐦𝐞 𝐞́𝐝𝐢𝐭𝐢𝐨𝐧") on desktop, but not on android, but when it is then saved into SQLServer, the data looks somewhat wrongly encoded:
It does look the same in Visual Studio while debugging:
And on any browser on Android, those badly written characters behave in the same way, but not on any desktop browser nor iOS.
I have no clue of what could be the issue here.

