Click here to get back home

replacing characters with their ASCII codes

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
replacing characters with their ASCII codes daniel kaplan 08-20-2005
Posted by daniel kaplan on August 20, 2005, 8:50 pm
Please log in for more thread options


Hi All,

Not sure what this is called, if I did, would be able to look it up myself.
Goes like this: my Perl apps call each other, passing variables through
parameters along the way. Now sometimes there might be a ' or a ", and
these doen't go smoothly, depending on what HTML code my Perl apps
generates. And these cause headaches.

So I thought there might be a function which translates all problematic
characters into their ASCII equivilant making everything safe to call in a
URL (i.e. Space becomes %20, etc).

Thanks ahead

Daniel




Posted by Brian McCauley on August 21, 2005, 9:43 am
Please log in for more thread options


daniel kaplan wrote:

> Not sure what this is called,

Er, it would be called "a Frequently Asked Question".

"How do I decode or create those %-encodings on the web?"

> would be able to look it up myself.

Yes I see the problem. That's why FAQs exist. FAQs are populated with
questions of exactly the type that would be difficult to find the
question without knowing more than someone asking the question is likely
to know.

For this reason you should not only search the FAQ list but also, from
time to time skim the whole thing so that when you encounder a FAQ you
will remember - "Oooh, I saw that in the FAQ".



Similar ThreadsPosted
replacing nonprintable characters in a file June 3, 2005, 4:21 pm
utf-8 and ascii January 25, 2005, 3:18 pm
Reusing SQL data-related logic, replacing weird modules and improving Class::DBI July 2, 2005, 1:23 am
What can you use to tie a hash of hashes to either dbm or ascii? December 2, 2007, 12:26 pm
Prettifying ASCII etc text (-> Unicode, TeX etc) January 23, 2005, 2:37 am
Removing non-printing characters ... October 7, 2004, 8:47 pm
handling UTF-8 characters in LWP module August 31, 2006, 10:39 pm
regular expression problem ? and * characters May 28, 2006, 7:02 am
Spreadsheet::Read special characters handling November 20, 2006, 2:33 am
Print Subject without characters Just Numbers using POP3Client. Please Help April 10, 2007, 11:27 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap