Hi,
we have a problem according to Exception Handling in RemObjects. The thing is, that I don’t know if it is on the server or client side.
In our system we’re able to execute some SQL-Queries on the client side, which get’s redirected to the server-side. When there’s an error on server side (eg. “Table not found”). In countries with special characters (eg. Hungary) we have the problem, that these characters are not shown properly.
My first guess was that it has to do something with Unicode/Ansistring conversion. So i changed in the exception handling method the line TROSerializer(ASerializer).ReadAnsiString('Details', l_Details); to TROSerializer(ASerializer).ReadUnicodeString('Details', l_Details);
and the same with WriteException, but it didn’t work.
Hi again,
so now it works. I found out, that the change of ReadAnsiString to ReadUnicodeString destroyed everything. But the change of WriteAnsiString to ****UnicodeString (in the WriteException part) was the solution.
But why does the characters become strange when in the ReadExecption part a Unicodestring is read?
Ahhh thank you!
I didn’t notice, that we create the ROBinMessage dynamically on the client side.
Now Unicode works in both methods (Read-/WriteException).
Thanks!
BR, Larissa