Jump to content
Sign in to follow this  
Micha1405

Convert Unicode to AnsiCode

Recommended Posts

Micha1405

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.