a recent post mentioned UTF-8 and encoded strings.
I have the need to go this way, deliberately. This is to encode Hebrew into a barcode, where the application only supports plain ANSI. Barcode will render correctly with escaped hex values.
$string = "אין כמו הבית" ; "no place like home" in Hebrew. ConsoleWrite( StringToBinary($string,4) & @CRLF ) ; returns ; 0xD790D799D79F20D79BD79ED79520D794D791D799D7AA
This is close, but I need this in individually encoded chars. Like this:
I probably miss something obvious. But is there a function to convert string directly into this output, or something to convert internal hex to escaped format ?