MSDOS accents & special characters
PRK
Posted messages
799
Registration date
Status
Member
Last intervention
-
2001music -
2001music -
Hello,
I have a little problem, I would like to program .bat files that would clean up certain directories on my computer, and when one of my directories has an accent on a letter, my bat file tells me that the path is not found. So far, that's normal.
However, I would like to know what combination to use for DOS to understand the following characters:
é
è
ê
Thank you in advance :)
EDIT: I forgot to share the path in question:
C:\Documents and Settings\XXX\Menu Démarrer\Programmes\Démarrage
--
(^°°)> -----> < *__* >
I have a little problem, I would like to program .bat files that would clean up certain directories on my computer, and when one of my directories has an accent on a letter, my bat file tells me that the path is not found. So far, that's normal.
However, I would like to know what combination to use for DOS to understand the following characters:
é
è
ê
Thank you in advance :)
EDIT: I forgot to share the path in question:
C:\Documents and Settings\XXX\Menu Démarrer\Programmes\Démarrage
--
(^°°)> -----> < *__* >
Configuration: Windows XP Firefox 2.0.0.3
3 answers
-
Hi,
it's probably because you're creating your file with Notepad or another Windows app that uses ANSI encoding while DOS uses ASCII encoding.
The best I've found is to create batch files using the DOS editor --> the EDIT command in console mode.
This should work better.
For extra safety, you can also enclose your paths in quotes to handle spaces...
;-) -
-
hello
you can do the reverse, that is to say:
@echo off
echo é >test.txt
echo è >>test.txt
echo ê >>test.txt
notepad test.txt
so the generated file contains the characters é, è, and ê
example of the ASCII code for the character é
é = Alt+0130
karirovax ;)