Show Cyrillics with ROServer

Hi there,
we’ve created a server and handled the messages as suggested in this post: ROHTTPServer - Result
That works perfectly fine with AnsiString. So now we have the problem, that on some servers, we need to show cyrillic characters for our customers.

The first thought was, that we have to change the explicit AnsiStrings to “normal” strings so that Unicodestrings are used (started with the RODL, then the implementations and so on).
The problem is, that the browser interprets the site we send, as plain html-text. No formatting, no shown tables, no fancy, colorfull stuff, just that plain html-text so the user has to interpret him/herself what things could happen on this site. :frowning:
The strange thing is, that it works with AnsiString but not with String (as Unicodestring).

So now the question. Is there anything we’ve missed? Or do we have to take a complete new direction to accomplish this task and if yes how can we do this?

Thank’s in advance for your answer!

Bye
Larissa

What ContentType and Encoding you are using?
I mean aResponse.ContentType and aResponse.Headers[id_Charset] inside ROServerCustomResponseEvent event.

try to play with them and set required ones.

We set nothing of these.
I’ll try and let you know if it worked or not.

Thank you!
Bye
Larissa

Thank you very much for the fast and accurate help! It worked. Changed the charset to utf-16 and now it works with unicode too!

Bye
Larissa