I am starting to program in batch and I have this problem. If I enter the variable by argument, it does not change the accented characters or character ñ, but if I declare the variable directly in the program, it does.
@echo off
set variable=%1
set variable=%variable:á=a%
set variable=%variable:é=e%
set variable=%variable:i=a%
set variable=%variable:ñ=n%
echo %variable%
set var=Holáéñ
set var=%var:á=a%
set var=%var:é=e%
set var=%var:ñ=n%
echo %var%
C:\Users\bruno\OneDrive\Escritorio\powershell>prova holáéñi
holáéña
Holaen
How can i fix this?