Accented characters in a *.bat
Solved
turblad
Posted messages
39
Status
Membre
-
turblad Posted messages 39 Status Membre -
turblad Posted messages 39 Status Membre -
Hello,
Another call to the command line pros
Let's say I rename a file using the rename command. I designate the new name as "été".
If I perform the operation directly in a cmd window, there is no problem.
If, however, I write the same instruction in a *.bat file, the accents (or other typically French characters) disappear and my file is named "ŬtŬ"
Does anyone have the trick to recode it correctly?
Thanks in advance
Another call to the command line pros
Let's say I rename a file using the rename command. I designate the new name as "été".
If I perform the operation directly in a cmd window, there is no problem.
If, however, I write the same instruction in a *.bat file, the accents (or other typically French characters) disappear and my file is named "ŬtŬ"
Does anyone have the trick to recode it correctly?
Thanks in advance
Configuration: Windows XP Firefox 3.0
1 réponse
I found it, you need to use an editor that saves in DOS format.
Several solutions
The simplest for those who, like me, use Notepad++ and its syntax highlighting:
Save the file normally
Reopen it with Wordpad
Save it again by choosing "MS DOS text"
--
It took us a lot of talent to be old without being adult (J. Brel)
Several solutions
The simplest for those who, like me, use Notepad++ and its syntax highlighting:
Save the file normally
Reopen it with Wordpad
Save it again by choosing "MS DOS text"
--
It took us a lot of talent to be old without being adult (J. Brel)