Solved

Special characters not supported on terminal Linux

Posted on 2014-11-22
3
197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Creating a Samba server for a small office. Ubuntu Linux and Samba can breathe new life into a retired PC and save an office money on new hardware/software. Our example server will have two hard disks, one exclusively for storing shared data. …
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 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