Page 1 of 1

Decompiling ABC Basic binary strings

PostPosted: 19 Sep 2018, 22:29
by pwiecz
I am toying with Kroah's ABC Decompiler and "Crusade in Europe".
I've noticed that it does not seem to correctly decompile string literals containing characters with codes >= 128.
I've managed to find a string which original content I could infer from the code.
But In the decompiled string before each character>=128 there is a char 0xc2 inserted.
Looking in other binary strings I can see that both 0xc2 and 0xc3 chars seem show up there.

Still, I cannot figure if it's safe to remove them, and what's the difference between 0xc2 and 0xc3 or if there may be other special values we should handle.
Have you what kind of string encoding is it?


Re: Decompiling ABC Basic binary strings

PostPosted: 26 Sep 2018, 20:39
by pwiecz
Silly me.
That's just C# encoding of such strings as it's probably trying to make them valid utf-8.