Topic: How use idhttp body support unicode ,UTF-8 Post Request

I Try use  mvd idhttp for test api post requset 
From Example Автоматическое подставление реквизитов организаций
link http://myvisualdatabase.com/forum/viewtopic.php?id=5751

OK Can use send post request  Not Error Good Job

But  body Or message Not Support  support unicode ,UTF-8

'Ваши вопросы / предложения на русском языке'  >> Show >> ' ???? ??????? / ??????????? ?? ??????? ?????'

How To Fix  ???

Help Me please

https://i.ibb.co/dLJrgr1/2020-07-21-08-34-26.png

My Visual Database : I Love You
Easy For Beginner Student For Me

Re: How use idhttp body support unicode ,UTF-8 Post Request

данный сервис вообще может отображать UTF-8
 
this service can display UTF-8 at all?

3 (edited by prahousefamily 2020-07-21 12:39:18)

Re: How use idhttp body support unicode ,UTF-8 Post Request

I Try Postman & Line Client PC Desktop Version  OK The language display is correct.
How To Fix In MVD ???

https://i.ibb.co/rbWLsDY/2020-07-21-19-27-20.png

Postman cUrl

curl --location --request POST 'https://notify-api.line.me/api/notify' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxx' \
--data-urlencode 'message=Ваши вопросы / предложения на русском языке'
My Visual Database : I Love You
Easy For Beginner Student For Me

Re: How use idhttp body support unicode ,UTF-8 Post Request

function EncodeURI(s:string):string;
var SE:variant;
begin
  SE := CreateOleObject('ScriptControl');
  SE.Language := 'JScript';
  SE.Reset;
  result := SE.Run('encodeURI',s);
  SE:=0;
end;
message=EncodeURI('Привет мир!');