09-06-2023, 09:42 AM
Byte array, ASCII encoding
|
09-06-2023, 11:15 PM
09-07-2023, 01:11 AM
09-07-2023, 06:14 PM
The same code above will also work for that.
09-07-2023, 06:45 PM
QM strings are byte arrays. Why to create a byte array as ARRAY(byte) and convert to byte array as str?
Kevin, Gintaras, I apologize for the late reply.
I am amazed at the functionality of the member function "escape". It is incredibly powerful. Quote:QM strings are byte arrays. Why to create a byte array as ARRAY(byte) and convert to byte array as str? The text to be processed is from the output of the wmic command. Is there a more easily understandable solution available?
09-22-2023, 02:59 PM
Task: wmic returns text "72,80,32,90,82,50,50,119,0,0,0,0,0", which is a comma-separated list of character codes, and need to convert it to string.
If all characters are ASCII, then Kevin's code works and is the simplest.
09-22-2023, 11:16 PM
Thanks for your explanation.
I have the following PowerShell code, which can escape text in a specific format into Unicode encoding. Is there a simple implementation method in QM? The ultimate result of the code execution is to echo the text. {"status":{"code":"1","message":"操作已经成功完成","created_at":"2023-09-23 06:58:47"} |
« Next Oldest | Next Newest »
|
Users browsing this thread: 2 Guest(s)