in reply to Re^2: Win32 registry export
in thread Win32 registry export
But I'm stuck with a problem I can't find a solution: every end of line has a byte sequence of "00 0D 00 0A" at regedit output and "00 0D 0A 00" at my script output. I don't know what is wrong and how to change this. With the current output I the file looks like a number of Chinese characters. Everything works fine if don't add "\n" to my output (the editor displays the string "Windows Registry Editor Version 5.00" and Unicode BOM as file format. Thank you for any help!open my $fh, '>:encoding(UTF-16LE)', 'wwe-perl.reg'; print {$fh} "\x{FEFF}"; print {$fh} "Windows Registry Editor Version 5.00\n\n"; say {$fh} "[HKLM\\SOFTWARE\\WWE]"; close $fh;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Win32 registry export
by Anonymous Monk on Jun 17, 2010 at 12:37 UTC | |
by wwe (Friar) on Jun 17, 2010 at 15:05 UTC | |
by wwe (Friar) on Jun 17, 2010 at 15:33 UTC |