set var=
can be solved by double-quote the left side.
example
set var = "`cat SJIS.txt`"
# I think it depends on the content of SJIS.txt.Specifically, the byte data contains "}"
(or something that is not Shift_JIS)
© 2024 OneMinuteCode. All rights reserved.