Forums
This topic is locked
Save Text Field info in Cookie with apostrophie?
Posted 05 Jul 2002 21:24:15
1
has voted
05 Jul 2002 21:24:15 chris chris posted:
When ever I save a cookie of a text field that contains an apostrophie (sp?) The data stored has a 3 slashes /// in it.For example. Sportsmen's Club ends up saved as Sportsmen///'s Club
So when I retrieve the cookie and redisplay it, it has the slashes. How do I fix this?
Thanks
Replies
Replied 05 Jul 2002 23:48:08
05 Jul 2002 23:48:08 aegis kleais replied:
That's super odd. I just made a page like this:
<% @LANGUAGE = VBSCRIPT %>
<%
Response.Cookies("test" = "Aaron's Book"
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%= Request.Cookies("test" %>
</body>
</html>
And sure enough "Aaron's Book" was displayed......
<% @LANGUAGE = VBSCRIPT %>
<%
Response.Cookies("test" = "Aaron's Book"
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%= Request.Cookies("test" %>
</body>
</html>
And sure enough "Aaron's Book" was displayed......
Replied 06 Jul 2002 03:14:03
06 Jul 2002 03:14:03 chris chris replied:
I'm using PHP maybe that has something to do with it?
Replied 06 Jul 2002 03:46:01
06 Jul 2002 03:46:01 aegis kleais replied:
PHP!?!?!?
*screams like a school girl*
Sorry brosky, can't help you there. 8<img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle> I'm saving up some money to buy StudioMX so I can get DMX (which I believe has a server model for PHP, woohoo!)
Um, this is an old javascript trick, but try changing the content to "Sportsmen\'s Club" without the quotes, and see what the output is.....
*screams like a school girl*
Sorry brosky, can't help you there. 8<img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle> I'm saving up some money to buy StudioMX so I can get DMX (which I believe has a server model for PHP, woohoo!)
Um, this is an old javascript trick, but try changing the content to "Sportsmen\'s Club" without the quotes, and see what the output is.....