Solved CMD converting special character(§) into another...!

April 27, 2012 at 00:49:32
Specs: Windows XP

hi
i am using batch file to run one program but while doing that i m using § this character in .bat file.
but the problem is that when i am trying to run that .bat file, the DOS is converting the § character to another character.
why DOS is doing this?
how do i solve this?
any suggestions?
thank you.

See More: CMD converting special character(§) into another...!

Report •

✔ Best Answer
May 4, 2012 at 01:15:13
hi
i got the answer.
check this post.

http://www.dostips.com/forum/viewto...
and read aGerman's answers....!



#1
April 27, 2012 at 03:11:40
That character isn't part of the standard ASCII character set, which may be why it appears differently in DOS. Which version of DOS are you using and how are you trying to use that character?

Report •

#2
April 27, 2012 at 03:22:29
i am using Microsoft Windows XP [Version 5.1.2600].
i am using that character as password in batch file.
that batch file contains
wget ftp://username:password§§@ftp.xxx.xx
wget is the software i am using to to download file using ftp.
but i am not able to login on that machine because of password

Report •

#3
April 27, 2012 at 04:25:19
OK. You are not using DOS at all, are you? You are using a Windows command prompt, which is a different thing.

Are you sure that the remote server accepts non-ASCII characters in passwords? Does it work if you type that command in manually or is it just failing in the batch file? Using non-ASCII characters in command-line interfaces is not normally a good thing as it depends upon what character set the computer is using, which may be completely different from that being used by the remote machine.


Report •

Related Solutions

#4
April 27, 2012 at 05:13:54
yes i am using the command prompt.
and yes it worked when i typed same line manually. even i copied the same line from batch file and pasted it on command prompt.. it worked.
its just failing in batch file.
$ is also one of the character of the password and it is working fine via batch file problem is of only § (ALt + 0167) character. it gets converted to another character if i use it via batch file.

Report •

#5
April 27, 2012 at 05:26:06
$ is part of the ASCII charcter set, so you wouldn't expect it to cause a problem. All I can advise is that you stick to standard ASCII charcters for your password.

Report •

#6
April 27, 2012 at 06:05:08
that's the problem i can not change that password.
it does not belong to me.
i had to use § (Alt + 0167) character

Report •

#7
April 27, 2012 at 08:11:58
Explain the problem to the owner of the password and ask them to change it.

Report •

#8
April 28, 2012 at 07:46:26
Try replacing it with an Alt+0015? I think that's what Ctrl+U is, in any case.

How To Ask Questions The Smart Way


Report •

#9
May 4, 2012 at 01:15:13
✔ Best Answer
hi
i got the answer.
check this post.

http://www.dostips.com/forum/viewto...
and read aGerman's answers....!


Report •

Ask Question