473,396 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Character Conversion

I have a string that I'm properly URL-encoding to be passed in a URL.
Here's the tag from the HTML source:

<A HREF="javascript:openPopWin('takeit.php?568&10&dr. +hobo%27s+scalpel',
325, 325, 'scrollbars')">

But when I mouse-over the link, the %27 shows in the status bar as a ' and
when I click on it, I get a JS error because of the extraneous '. The +s
are not being decoded - why is this one character, and is there a way to
prevent it?

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 23 '05 #1
3 1121

"Alan Little" <al**@n-o-s-p-a-m-phorm.com> a écrit dans le message de news:
Xn**************************@216.196.97.132...
I have a string that I'm properly URL-encoding to be passed in a URL.
Here's the tag from the HTML source:

<A HREF="javascript:openPopWin('takeit.php?568&10&dr. +hobo%27s+scalpel',
325, 325, 'scrollbars')">

But when I mouse-over the link, the %27 shows in the status bar as a ' and
when I click on it, I get a JS error because of the extraneous '. The +s
are not being decoded - why is this one character, and is there a way to
prevent it?

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/


did you try this ?
<A HREF="javascript:openPopWin('takeit.php?568&10&dr. +hobo\'s+scalpel',
325, 325, 'scrollbars')">

Franck

http://javascript.codefr.com

http://www.videofolies.net


Jul 23 '05 #2
codomaniac wrote:
"Alan Little" <al**@n-o-s-p-a-m-phorm.com> a écrit dans le message de news:
Xn**************************@216.196.97.132...
<--snip-->
did you try this ?
<A HREF="javascript:openPopWin('takeit.php?568&10&dr. +hobo\'s+scalpel',
325, 325, 'scrollbars')">


And then try this:

http://www.jibbering.com/faq/#FAQ4_24

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
Jul 23 '05 #3
Carved in mystic runes upon the very living rock, the last words of
Randy Webb of comp.lang.javascript make plain:
codomaniac wrote:
"Alan Little" <al**@n-o-s-p-a-m-phorm.com> a écrit dans le message de
news: Xn**************************@216.196.97.132...


<--snip-->
did you try this ?
<A
HREF="javascript:openPopWin('takeit.php?568&10&dr. +hobo\'s+scalpel',
325, 325, 'scrollbars')">


And then try this:

http://www.jibbering.com/faq/#FAQ4_24


Thanks for the ref. That's much cleaner.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: WindAndWaves | last post by:
Hi Folk Here I am writing my first php / mysql site, almost ready, and now this... charactersets.... The encoding that I use on my webpage is: <META HTTP-EQUIV="content-type"...
0
by: Tumurbaatar S. | last post by:
Hi, I'm running MySQL 3.23.55 on WinXP and have some problem using non latin charset. I've added these 2 lines under group of my.ini: character-sets-dir = c:/mysql/share/charsets/...
4
by: Raquel | last post by:
Could someone explain to me what the reason is for having a character delimiter (which is double quotes by default) for performing Loads/Imports on UDB? I would think that column delimiter along...
11
by: Mars | last post by:
char c; int i; scanf("%d",&i); c=getchar(); I want to read a integer and a character in 2 lines. Why the getchar always get the \n character from the last line????? (Sorry for my newbie...
5
by: Stefan Krah | last post by:
Hello, I am currently writing code where it is convenient to convert char to int . The conversion function relies on a character set with contiguous alphabets. int set_mesg(Key *key, char...
18
by: james | last post by:
Hi, I am loading a CSV file ( Comma Seperated Value) into a Richtext box. I have a routine that splits the data up when it hits the "," and then copies the results into a listbox. The data also...
23
by: Akhil | last post by:
Since a character constant is an int value represented as a character in single quotes,so it is treated as a 1 byte integer now look at the following snippet. #include<stdio.h> int main(void)...
17
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, Wide character and multi-byte character are two popular encoding schemes on Windows. And wide character is using unicode encoding scheme. But each time I feel confused when...
6
by: ssetz | last post by:
Hello, For work, I need to write a password filter. The problem is that my C+ + experience is only some practice in school, 10 years ago. I now develop in C# which is completely different to me....
3
by: Evan Klitzke | last post by:
Although it is not present in ANSI C, the GNU version of stftime supports the conversion character %z, which is a time offset from GMT. The four digit time offset is required in RFC 2822...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.