06-10-2008
URL to ASCII
I am writing a small script to help me clean out my music (itunes) that has somehow doubled every song. Using the itunes.xml file, I have been able to create a simple list of all the files. The problem is itunes uses URL style formatting, ex. %20 for spaces. I used sed to convert %20 to a space only to find out every special character(!, ?, etc.) is like this. Is there a quick way to convert all URL (hexadecimal I believe) to regular ASCII? Thanks for the help.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
a silly question but is there a way to display individual ascii values
say if i type 65 it will display the letter instead?
thanks fo any help. (3 Replies)
Discussion started by: melkor
3 Replies
2. UNIX for Advanced & Expert Users
Hi all,
I need to write a unix script in which need to call a url.
Then need to pass parameters to that url.
please help.
Regards,
gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies
3. Shell Programming and Scripting
Hi all,
I need to write a unix script in which need to call a url.
Then need to pass parameters to that url.
please help.
Regards,
gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I need to redirect an existing URL, how can i do that?
There's a current web address to a GUI that I have to redirect to another webaddress. Does anyone know how to do this?
This is on Unix boxes Linux.
example:
https://m45.testing.address.net/host.php
make it so the... (3 Replies)
Discussion started by: SkySmart
3 Replies
5. Shell Programming and Scripting
Hi gurus,
I have a file in unix with ascii values. I need to convert all the ascii values in the file to ascii characters. File contains nearly 20000 records with ascii values. (10 Replies)
Discussion started by: sandeeppvk
10 Replies
6. Programming
Hello guys,
i want to convert a text file to hex and have written this code :
int main(int argc, char **argv)
{
ifstream file;
string fileName = "CODEZ";
file.open(fileName.c_str()); // oeffen im Text-Modus
if(file)
{... (5 Replies)
Discussion started by: Kingbruce
5 Replies
7. Web Development
I am trying to find a way to test some code, but I need to rewrite a specific URL only from a specific HTTP_HOST
The call goes out to
http://SUB.DOMAIN.COM/showAssignment/7bde10b45efdd7a97629ef2fe01f7303/jsmodule/Nevow.Athena
The ID in the middle is always random due to the cookie.
I... (5 Replies)
Discussion started by: EXT3FSCK
5 Replies
8. UNIX for Dummies Questions & Answers
Here is what I have so far:
find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}'
Here is an example content of a PHP or HTM(HTML) file:
<iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Discussion started by: striker4o
18 Replies
9. Shell Programming and Scripting
Hello,
Am very new to perl , please help me here !!
I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file.
below is the script which i have written so far ,
#!/usr/bin/perl
use LWP::UserAgent;
use... (2 Replies)
Discussion started by: scott_cog
2 Replies
10. Shell Programming and Scripting
Hi All,
I have an ascii file in which few columns are having hex values which i need to convert into ascii. Kindly suggest me what command can be used in unix shell scripting?
Thanks in Advance (2 Replies)
Discussion started by: HemaV
2 Replies
LEARN ABOUT DEBIAN
urlencode
URLENCODE(1) GridSite Manual URLENCODE(1)
NAME
urlencode - convert strings to or from URL-encoded form
SYNOPSIS
urlencode [-m|-d] string [string ...]
DESCRIPTION
urlencode encodes strings according to RFC 1738.
That is, characters A-Z a-z 0-9 . _ and - are passed through unmodified, but all other characters are represented as %HH, where HH is their
two-digit upper-case hexadecimal ASCII representation. For example, the URL http://www.gridpp.ac.uk/ becomes
http%3A%2F%2Fwww.gridpp.ac.uk%2F
urlencode converts each character in all the strings given on the command line. If multiple strings are given, they are concatenated with
separating spaces before conversion.
OPTIONS
-m Instead of full conversion, do GridSite "mild URL encoding" in which A-Z a-z 0-9 . = - _ @ and / are passed through unmodified. This
results in slightly more human-readable strings but the application must be prepared to create or simulate the directories implied
by any slashes.
-d Do URL-decoding rather than encoding, according to RFC 1738. %HH and %hh strings are converted and other characters are passed
through unmodified, with the exception that + is converted to space.
EXIT CODES
0 is always returned.
AUTHOR
Andrew McNab <Andrew.McNab@manchester.ac.uk>
urlencode is part of GridSite: http://www.gridsite.org/
urlencode November 2003 URLENCODE(1)