Page 1 of 1

Rename unicode character problem

PostPosted: Tue Oct 23, 2018 3:21 am
by tamle
I have this code but for the letter "?" and "?", BRC wouldn't work. Replacing " " with "_" is working fine. Doing the same (replacing unicode character) in BRU works fine. Is there anything that I do wrong?

Code: Select all
pause
chcp 1250
set path="C:\BRC_Unicode_64\";%path%
BRC64.exe /RECURSIVE /STRIPACCENTS /REPLACECI:" ":"_" /EXECUTE
BRC64.exe /RECURSIVE /STRIPACCENTS /REPLACECI:"?":"d" /EXECUTE
BRC64.exe /RECURSIVE /STRIPACCENTS /REPLACECI:"?":"D" /EXECUTE

pause

Re: Rename unicode character problem

PostPosted: Tue Oct 23, 2018 4:26 pm
by therube

Re: Rename unicode character problem

PostPosted: Tue Oct 23, 2018 6:11 pm
by tamle
Doing the same (replacing unicode character) in BRU works fine

I think the problem is batch scripting handling the character, not BRU itself. I can't try anything in the post you suggested.

Re: Rename unicode character problem

PostPosted: Wed Oct 24, 2018 4:03 am
by tamle
Code: Select all
chcp 65001

set path="C:\BRC_Unicode_64\";%path%
BRC64.exe /RECURSIVE /STRIPACCENTS /REPLACECI:" ":"_" /EXECUTE
BRC64.exe /RECURSIVE /REPLACECI:"?":"d" /EXECUTE
BRC64.exe /RECURSIVE /REPLACECI:"?":"D" /EXECUTE


This will work. You have to identify what BRC doesn't do manually and add it to a batch file.