RTC Forums
November 24, 2024, 01:23:58 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Cyrillic symbols in URL  (Read 4517 times)
sanche
RTC Expired
*
Posts: 6


« 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
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 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
Logged
sanche
RTC Expired
*
Posts: 6


« Reply #2 on: October 23, 2013, 11:38:28 AM »

I used Utf8Decode function, it's Ok

Thanks
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.024 seconds with 17 queries.