Jump to content

Convert Unicode to AnsiCode


 Share

Recommended Posts

Please help a newbie

The function "FileReadLine" doesn't work if the regfile ist unicode! Before i can read, it must convert to ansicode

Try to export a key with subkeys from the registry and read it with "FileReadLine" !?!

Thats the problem...

I have found this cmd script to convert reg files from unicode to ansi code !

@Echo Off

echo UniCode to ANSI converter for Registry files.

md ~ANSI

for %%a in (*.reg *.?reg?) do type "%%a">"~ANSI\%%a"

for %%a in (*.reg *.?reg?) do attrib -r -h -s "%%a"

cd ~ANSI

for %%a in (*.reg *.?reg?) do move /y "%%a" ..

cd..

rd ~ANSI

it works ! :lmao:

Edited by Micha1405
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...