Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

special characters and ASCII code

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
FR
hi all,

when i initialise a string like this :

nextpage = "organizer.asp?WCI=oAddAgency&WCU"

and then display it it gives me this :

organizer%2Easp%3FWCI=oAddAgency

well i guess that javascript has a problem with the special characters "." "?" "&" and maybe more...

what can i do to keep those characters in my string ? is there a function that converts an ascii code ? or is there a better way to do this ?
Best regards X-),
Elise
 
there are ASCII code for html
you shoulde use &# folowd by a number.

Well the characters you need are ...

for & use &
for . use .

etc

Have a nice Day

Roi
 
there are ASCII code for html
you shoulde use &# folowd by a number.

Well the characters you need are ...

for & use & # 38;
for . use & # 46;

ignore the spaces otherwise you see the char itself
etc

Have a nice Day

Roi
 
well that's not a HTML display, but a javascript string...
Best regards X-),
Elise
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top