Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
command parsing is garbled
#1
Hi,

Send command arguments if they contain double-byte characters, garbled characters appear when received

Thanks in advance for any advice and help
david

Macro Send_command
Code:
Copy      Help
str p="C:\Users\Administrator\Desktop\地球村 ABC.txt"

str s=
;地球村 你好abcde世界ab
;大家好 ab你好 abc

int h = win("" "QM_Editor")
SendMessage(h WM_SETTEXT 3 F"Q ^ M ^Receive_command^ C {p} 123 {s}")

Function Receive_command
Code:
Copy      Help
;Parse the command line
ARRAY(str) a
ExeParseCommandLine(_command a)

for _i 0 a.len
,_s.formata("%s[]" a[_i].trim)
_s.trim

mes a.len

mes _s

mes _unicode


Messages In This Thread
command parsing is garbled - by Davider - 08-12-2022, 12:47 AM
RE: command parsing is garbled - by Kevin - 08-12-2022, 01:33 AM
RE: command parsing is garbled - by Davider - 08-12-2022, 02:54 AM
RE: command parsing is garbled - by Kevin - 08-12-2022, 04:30 AM
RE: command parsing is garbled - by Davider - 08-12-2022, 05:00 AM
RE: command parsing is garbled - by Gintaras - 08-12-2022, 05:28 AM
RE: command parsing is garbled - by Davider - 08-12-2022, 08:34 AM
RE: command parsing is garbled - by Gintaras - 08-12-2022, 01:27 PM
RE: command parsing is garbled - by Davider - 08-13-2022, 01:13 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)