RTC Forums

Subscription => Support => Topic started by: sanche on October 22, 2013, 10:27:37 PM



Title: Cyrillic symbols in URL
Post by: sanche on October 22, 2013, 10:27:37 PM
third-party server (UTF8 Form) send request on my server
URL: http://myserv.com/getinfo?name=иванов

In DataProvCheckRequest Request.URL get...
http://myserv.com/getinfo?name=иванов 

How do I read the original value? (иванов)

Thanks


Title: Re: Cyrillic symbols in URL
Post by: D.Tkalcec (RTC) on October 23, 2013, 08:09:10 AM
If it is UTF-8 encoded, then you can use the Utf8Decode function from the "rtcInfo.pas" unit to convert UTF-8 encoded string to a Unicode string.

PS. If you need to send Unicode strings, you can use the Utf8Encode function to encode them for transport.

Best Regards,
Danijel Tkalcec


Title: Re: Cyrillic symbols in URL
Post by: sanche on October 23, 2013, 11:38:28 AM
I used Utf8Decode function, it's Ok

Thanks