By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!I am not sure if I understand, the command "echo %@char[0xEF]%@char[0xBB]%@char[0xBF] > file.txt" is good for You?I am aware that standard CMD.EXE does not support ECHOing hex codes to stdout, like
echo "\xEF\xBB\xBF" >file.txt
I expected there must be some way in swiss army knife TCC, but I haven't found one.
Can't TCC do this? (w/o relying on external progs like forfiles etc)
I am not sure if I understand, the command "echo %@char[0xEF]%@char[0xBB]%@char[0xBF] > file.txt" is good for You?
echo %@char[0xef 0xbb 0xbf] > file.txt
if the goal is just to write a Byte Order Mark, it's %@char[0xfeff]. Redirecting to a file with OPTION //UTF8OUTPUT=YES will produce the correct byte encoding.