For Programmers: Free Programming Magazines  


Home > Archive > ASP > March 2005 > Problems with the half symbol









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problems with the half symbol
Astra

2005-03-24, 8:55 am

Hi All

This is really bizarre prob that I don't know how I'm going to get round it.

In essence I have created a site that allows the user to select their
preferred shoe size, this then gets added to a simple cart and then they
submit the cart order.

The problem is that even though I'm being a good lad and using ½ to
display the half sizes in the drop-down selector, eg Size 3, Size 3½,
Size 4, Size 4½, etc when the data is posted into my Access DB, the
DB **seems** to be converting it into the actual half symbol and storing it
like this.

When the cart contents are retrieved it looks OK in the browser, for some
reason the symbol still looks OK even though the View Source shows it is the
actual half symbol rather than the HTML code, but the problem is that this
half symbol turns into a blob when it gets emailed.

My first plan was to do a Replace function for all instances of ½ to
'.5', but the Replace function didn't pick any of them up. So I tried the
same proc with a copy and paste of the half symbol from View Source and then
½ but none of these got the Replace to actually do the replace.

Can anybody assist me with this?

Thanks Robbie


Steven Burn

2005-03-24, 8:55 am

<%
Dim sTemp
sTemp =3D "I want ½ of the ¼ he's getting"
Response.Write Server.HTMLEncode(Replace(sTemp, "½", =
"//12//"))
%>

--=20
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Astra" <info@noemail.com> wrote in message =
news:#PT8z7FMFHA.2748@TK2MSFTNGP09.phx.gbl...
> Hi All
>=20
> This is really bizarre prob that I don't know how I'm going to get =

round it.
>=20
> In essence I have created a site that allows the user to select their=20
> preferred shoe size, this then gets added to a simple cart and then =

they=20
> submit the cart order.
>=20
> The problem is that even though I'm being a good lad and using =

½ to=20
> display the half sizes in the drop-down selector, eg Size 3, Size =

3½,=20
> Size 4, Size 4½, etc when the data is posted into my Access DB, =

the=20
> DB **seems** to be converting it into the actual half symbol and =

storing it=20
> like this.
>=20
> When the cart contents are retrieved it looks OK in the browser, for =

some=20
> reason the symbol still looks OK even though the View Source shows it =

is the=20
> actual half symbol rather than the HTML code, but the problem is that =

this=20
> half symbol turns into a blob when it gets emailed.
>=20
> My first plan was to do a Replace function for all instances of =

½ to=20
> '.5', but the Replace function didn't pick any of them up. So I tried =

the=20
> same proc with a copy and paste of the half symbol from View Source =

and then=20
> ½ but none of these got the Replace to actually do the replace.
>=20
> Can anybody assist me with this?
>=20
> Thanks Robbie=20
>=20
>=20


Astra

2005-03-24, 8:55 am

Genius!!!


"Steven Burn" <somewhere@in-time.invalid> wrote in message
news:eDf6MKGMFHA.1948@TK2MSFTNGP14.phx.gbl...
<%
Dim sTemp
sTemp = "I want ½ of the ¼ he's getting"
Response.Write Server.HTMLEncode(Replace(sTemp, "½", "//12//"))
%>

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Astra" <info@noemail.com> wrote in message
news:#PT8z7FMFHA.2748@TK2MSFTNGP09.phx.gbl...
> Hi All
>
> This is really bizarre prob that I don't know how I'm going to get round
> it.
>
> In essence I have created a site that allows the user to select their
> preferred shoe size, this then gets added to a simple cart and then they
> submit the cart order.
>
> The problem is that even though I'm being a good lad and using ½ to
> display the half sizes in the drop-down selector, eg Size 3, Size
> 3½,
> Size 4, Size 4½, etc when the data is posted into my Access DB, the
> DB **seems** to be converting it into the actual half symbol and storing
> it
> like this.
>
> When the cart contents are retrieved it looks OK in the browser, for some
> reason the symbol still looks OK even though the View Source shows it is
> the
> actual half symbol rather than the HTML code, but the problem is that this
> half symbol turns into a blob when it gets emailed.
>
> My first plan was to do a Replace function for all instances of ½
> to
> '.5', but the Replace function didn't pick any of them up. So I tried the
> same proc with a copy and paste of the half symbol from View Source and
> then
> ½ but none of these got the Replace to actually do the replace.
>
> Can anybody assist me with this?
>
> Thanks Robbie
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com