M
M
maks2807952014-12-01 05:45:26
Delphi
maks280795, 2014-12-01 05:45:26

Delphi XE7 how to pass Cyrillic to JSON?

It is not possible to transfer Cyrillic wrapped in JSON through Indy.
What I do: I
create a TJSON object with some fields in Cyrillic
In an object of type TIdMultiPartFormDataStream I add a data field where the value is a string representation of the object
I execute a Post request passing it an object of type TIdMultiPartFormDataStream.
What I get:
I get question marks on the server side.
I tried to encode in BASE64, but in this case the validator swears:
5c0b73e2e20e4b23acda588ed0208883.JPG

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
maks280795, 2014-12-01
@maks280795

Problem solved.
The bottom line is that I was trying to base64 encode only the key values, now I just encoded the JSON string representation of the object and got what I wanted.

V
Vanya Bogatyrev, 2017-03-17
@H1ppy

Went through a bunch of fonts.
I settled on BigNoodleThiling.
The question is closed.

D
dom1n1k, 2017-03-18
@dom1n1k

This is an artificially distorted Roboto Condensed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question