Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Byte array, ASCII encoding
#7
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.


Messages In This Thread
Byte array, ASCII encoding - by Davider - 09-06-2023, 09:42 AM
RE: Byte array, ASCII encoding - by Kevin - 09-06-2023, 11:15 PM
RE: Byte array, ASCII encoding - by Davider - 09-07-2023, 01:11 AM
RE: Byte array, ASCII encoding - by Kevin - 09-07-2023, 06:14 PM
RE: Byte array, ASCII encoding - by Gintaras - 09-07-2023, 06:45 PM
RE: Byte array, ASCII encoding - by Davider - 09-22-2023, 12:49 PM
RE: Byte array, ASCII encoding - by Gintaras - 09-22-2023, 02:59 PM
RE: Byte array, ASCII encoding - by Davider - 09-22-2023, 11:16 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)