RTC Forums
May 05, 2024, 03:49:51 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Unicode response  (Read 3699 times)
jonb2
Newbie
*
Posts: 36


« on: February 15, 2012, 12:13:02 PM »

Hi Danijel

I am getting:

"Gerenciando Blog - O blog para quem tem blog - Dicas de SEO, monetização e serviços" in the response data.

It should be:

"Gerenciando Blog - O blog para quem tem blog - Dicas de SEO, monetização e serviços"

Can RTC handle this correctly ?

J.
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: February 15, 2012, 12:23:32 PM »

You are getting exactly what was sent, without any conversions. When using TRtcDataRequest/TRtcDataProvider components, you need to apply the appropriate conversion when moving that data into the end-format (like Unicode or Wide String).

From the looks of it, the content you have received is UTF-8 encoded, so you should be able to decode it using the "utf8decode" function from the "rtcInfo.pas" unit, storing the result in a Unicode or Wide String variable.

Best Regards,
Danijel Tkalce
Logged
jonb2
Newbie
*
Posts: 36


« Reply #2 on: February 15, 2012, 12:40:07 PM »

Thats it. D, your a star always! Thank you.

J
Logged
jonb2
Newbie
*
Posts: 36


« Reply #3 on: February 15, 2012, 12:42:20 PM »

PS. *you're*
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.023 seconds with 17 queries.