Using Unicode with Recorder.AddSyntaxToScript
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): function RecordExecute_CurrentControl_JS() { var call; call = Syntax.CreateInvoke(); call.ClassValue = 'BuiltIn'; call.InvokeName = 'MessageDlg'; call.IsProperty = false; call.AddParameter('‰Šš›‹žŽŸŒœ•€'); Recorder.AddSyntaxToScript(call); } This will end up in my keyword test as follows: BuildIn | MessageDlg | "\\u2030Šš\\u203a\\u2039žŽŸŒœ\\u2022€" Is there any method I need to call on my string parameter to prepare it for `AddSyntaxToScript`? P.S.:Recorder.AddTextToScript works just fine with any Unicode-String passed.1.6KViews0likes5Comments