#1 2021-08-05 09:06:58

radexpol
Member
From: Poland, Krk
Registered: 2019-11-29
Posts: 116

Json Escape characters \u

How to get the Json Text with escaped diacritics?

  var j := _ObjFast([]);
  j.name := 'Россия';
  ShowMessage( VariantToString(j)); //displays {"name":"Россия"} instead of {"name":"\u0420\u043E\u0441\u0441\u0438\u044F}

Offline

#2 2021-08-05 18:38:55

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,534
Website

Re: Json Escape characters \u

In UTF8 encoding you do not need to escape cyrilic characters...

Offline

Board footer

Powered by FluxBB