R
R
Romanson2016-04-02 17:58:41
Delphi
Romanson, 2016-04-02 17:58:41

How to send Cyrillic to the site in idhttp?

edit7.Text:=UTF8ToAnsi(edit7.Text);

    IdHTTP1.Get('http://127.0.0.1/addnumb.php' + Edit7.Text);
- Cyrillic characters come to the site as question marks.
How to send GET requests with Cyrillic to idhttp?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zed, 2016-04-03
@Romanson

1. Read here www.w3schools.com/tags/ref_urlencode.asp and find out how the text should be encoded to be passed to the url;
2. Encode the text using one of the solutions from here: stackoverflow.com/questions/776302/standard-url-en... (if using XE7 and above, then the best solution is TNetEncoding.Url.Encode()).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question