I have written my own record action (as script extension) to handle certain cases during test recording. The implementation of the record action uses `Recorder.AddSyntaxToScript` to add operations to the test being recorded. Unfortunately I noticed that this function is unable to handle Unicode correctly.
Example (very much simplified):
call = Syntax.CreateInvoke();
call.ClassValue = 'BuiltIn';
call.InvokeName = 'MessageDlg';
call.IsProperty = false;
If I add operations using `AddTextToScript`, any unicode characters are displayed correctly inside the keyword test editor and also during execution of the test.
No, unfortunately the encoding of the script files does not change the behaviour. It is set to UTF-8. As I've already stated, AddTextToScript works fine and AddSyntaxToScript in the same script function does not.