Originally posted by namejm at 2006-9-12 12:10:
A rough look at the most headache-inducing English help, I found that this thing is really powerful, able to save the output text as ANSI format or Unicod format, and now reading Chinese characters in the registry is relatively ...
Bamboo Master namejm, after my multiple experiments, I found that in fact, the conversion between ANSI and UNICOD formats can be easily achieved without any third-party tools. The files exported using REG EXPORT and other methods in the registry are in UNICOD format, and many DOS tools cannot operate on them. For example, using the BINSUB tool cannot replace the characters in them. Then you can use the TYPE command to directly output to another file. The TYPE command can convert UNICOD to ANSII code. For example, TYPE 01.REG >02.REG. But I can't achieve it using FOR and FINDSTR and other commands (these two commands output in the original code and remain in that code after output).
To convert in reverse, that is, convert ANSII to UNICOD code, it is actually not meaningful. You can first randomly export any registry, then use cd %cd% >01.reg to clear 01.reg, so as to create an empty text in UNICOD. Now you can use other methods to write things in, which will be a UNICOD text.