chkaufmann 17 Posted October 5, 2021 I use a TIdHTTPServer and have problems with decoding GET variables. The url in the browser looks like this (contains cyrillic characters): Then in the RequestInfo the UnparsedParam and the QueryParams have the value 'search=%D0%90%D0%BD%D1%82%D0%BE%D0%BD&language=ru' In DecodeAndSetParams this is parsed but I don't get the correct results: The request comes from the browser and I didn't change any properties. So I'm not sure how to proceed. I think Indy uses the wrong encoding but I'm not aware, where I can change that? And will all browser use the same encoding? Or do I have to Parse the QueryParams myself? Christian Share this post Link to post
chkaufmann 17 Posted October 5, 2021 I think, I found the answer myself now: https://stackoverflow.com/questions/24861793/indy-http-server-url-encoded-request When I add this code, my search string is correct. So probably nothing changed here since 2014. Christian Share this post Link to post
Remy Lebeau 1421 Posted October 5, 2021 (edited) 6 hours ago, chkaufmann said: So probably nothing changed here since 2014. Actually, about 8 months ago, TIdHTTPServer was updated to now default to parsing input parameters using UTF-8 if no charset is specified in the Content-Type header. I have added that note to the StackOverflow post you linked to. Edited October 5, 2021 by Remy Lebeau Share this post Link to post
chkaufmann 17 Posted October 5, 2021 So this fix will be with the Indy version that comes with Delphi 11? Christian Share this post Link to post
Remy Lebeau 1421 Posted October 5, 2021 2 hours ago, chkaufmann said: So this fix will be with the Indy version that comes with Delphi 11? Yes. Delphi 11 shipped with the latest Indy that was available 3 months ago. 2 Share this post Link to post