Solved

Special characters not supported on terminal Linux

Posted on 2014-11-22
3
190 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 11

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 19

Accepted Solution

by:
simon3270 earned 500 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

919 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now