* [gentoo-user] ftp login with ASCII characters?
@ 2008-11-11 7:21 Mick
2008-11-11 12:38 ` David Relson
0 siblings, 1 reply; 3+ messages in thread
From: Mick @ 2008-11-11 7:21 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 915 bytes --]
I am getting perplexed why WYSINWYG:
I was trying to login to an ftp server from the CLI. Typing in the passwd
failed every time. I then set it up as a network connection in Konqueror and
I had no problem at all connecting using the same passwd. However, I noticed
that some additional characters had been added by konqueror's interpretation
of what the passwd ought to look like; e.g.
Original passwd: XXXXXXX%02XXXX
Konqueror passwd: XXXXXXX%2502XXXX
Konqueror added 25 to it, after the percentage sign. True enough when I tried
the augmented string as a passwd on the command line I was able to login
fine. My terminal is TERM=rxvt and shell is SHELL=/bin/bash. Is there a way
to simplify this confusion and allow what I type to login normally?
Otherwise, where can I find what characters I should be typing in for all
sort of symbols like "^&*[]<>#@" ?
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] ftp login with ASCII characters?
2008-11-11 7:21 [gentoo-user] ftp login with ASCII characters? Mick
@ 2008-11-11 12:38 ` David Relson
2008-11-11 22:09 ` Mick
0 siblings, 1 reply; 3+ messages in thread
From: David Relson @ 2008-11-11 12:38 UTC (permalink / raw
To: gentoo-user
On Tue, 11 Nov 2008 07:21:43 +0000
Mick wrote:
> I am getting perplexed why WYSINWYG:
>
> I was trying to login to an ftp server from the CLI. Typing in the
> passwd failed every time. I then set it up as a network connection
> in Konqueror and I had no problem at all connecting using the same
> passwd. However, I noticed that some additional characters had been
> added by konqueror's interpretation of what the passwd ought to look
> like; e.g.
>
> Original passwd: XXXXXXX%02XXXX
> Konqueror passwd: XXXXXXX%2502XXXX
>
> Konqueror added 25 to it, after the percentage sign. True enough
> when I tried the augmented string as a passwd on the command line I
> was able to login fine. My terminal is TERM=rxvt and shell is
> SHELL=/bin/bash. Is there a way to simplify this confusion and allow
> what I type to login normally? Otherwise, where can I find what
> characters I should be typing in for all sort of symbols like
> "^&*[]<>#@" ? --
> Regards,
> Mick
H'lo Mick,
It looks like your problem is the percent sign. I suggest that you
don't use the percent sign in your password. FWIW, most other special
characters should be fine.
In URL's, the percent sign is used as an escape character to indicate
the next 2 characters are hexadecimal digits representing a single
ascii character. As you likely know, letter 'A' is a byte with value
65 (decimal) and 41 (hexadecimal). In C (and other languages) it can
be represented as 0x41. Using the percent sign escape notation, 'A'
and "%41" are the same. Your password contains "%02" which is being
interpreted as 0x02, i.e. as the character whose internal value is 2,
i.e. as CTL-B.
An ASCII chart will give you the decimal and hexadecimal equivalents of
the special characters about which you asked.
HTH,
David
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-11 22:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-11 7:21 [gentoo-user] ftp login with ASCII characters? Mick
2008-11-11 12:38 ` David Relson
2008-11-11 22:09 ` Mick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox