Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Special characters not supported on terminal Linux

Posted on 2014-11-22
3
Medium Priority
?
213 Views
Last Modified: 2014-11-23
hello

my error

root@sd-42495:/tmp/plowshare4# plowdown -a [b]'mymail@gmail.com:[/b]******' http://link.1fichier.com/
Starting download (1fichier): http://link.1fichier.com/
Starting login process: [b]mymail%40gmail.com/**********[/b]

Open in new window


@ I is replaced by %40 ?? Why

ty
0
Comment
Question by:hexo dark
3 Comments
 
LVL 12

Expert Comment

by:andreas
ID: 40459879
Maybe its not a terminal issue maybe plowdown will replace it by %40

try following

echo "@"

it should return @ in the terminal

if its like this then plowdown does the conversion to %40.
0
 
LVL 20

Accepted Solution

by:
simon3270 earned 2000 total points
ID: 40460027
It's the plowdown code which is converting the "@" to a "%40".

At line 1150 of the file /usr/local/share/plowshare4/core.sh in the version I've just downloaded is the line:

    USER=$(echo "${AUTH%%:*}" | uri_encode_strict)

That takes your username (the "mymail@gmail.com") and converts all non-alphanumeric characters to their "safe" equivalents.  It's the same process which converts spaces in URLs to %20, and the "://" in "http://aa.com" to "%3a%2f%2f".  Here it is converting "@" to "%40".

To avoid this, you'll need to edit /usr/local/share/plowshare4/core.sh and either change the above line to

    USER="${AUTH%%:*}"

or remove line 1032 (in the uri_encode_strict function):

     s/@/%40/g

I'd prefer the first fix.
0
 
LVL 2

Author Closing Comment

by:hexo dark
ID: 40461133
tx it works :)
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Users are often faced with high disk consumption without really knowing where the largest amount of data resides. Disk Usage Analyzer (aka Baobab) is is a graphical, menu-driven application to analyse disk usage in any Gnome environment and can e…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question