From: David Relson <relson@osagesoftware.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] ftp login with ASCII characters?
Date: Tue, 11 Nov 2008 07:38:14 -0500 [thread overview]
Message-ID: <20081111073814.0a5310f4@osage.osagesoftware.com> (raw)
In-Reply-To: <200811110722.24099.michaelkintzios@gmail.com>
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
next prev parent reply other threads:[~2008-11-11 12:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-11 7:21 [gentoo-user] ftp login with ASCII characters? Mick
2008-11-11 12:38 ` David Relson [this message]
2008-11-11 22:09 ` Mick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081111073814.0a5310f4@osage.osagesoftware.com \
--to=relson@osagesoftware.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox