Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   Problems with the half symbol (http://www.velocityreviews.com/forums/t798327-problems-with-the-half-symbol.html)

Astra 03-24-2005 10:46 AM

Problems with the half symbol
 
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 03-24-2005 11:12 AM

Re: Problems with the half symbol
 
<%
Dim sTemp
sTemp = "I want &frac12; of the &frac14; he's getting"
Response.Write Server.HTMLEncode(Replace(sTemp, "&frac12;", "//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 &frac12; to
> display the half sizes in the drop-down selector, eg Size 3, Size 3&frac12;,
> Size 4, Size 4&frac12;, 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 &frac12; 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
>
>



Astra 03-24-2005 11:38 AM

Re: Problems with the half symbol
 
Genius!!!


"Steven Burn" <somewhere@in-time.invalid> wrote in message
news:eDf6MKGMFHA.1948@TK2MSFTNGP14.phx.gbl...
<%
Dim sTemp
sTemp = "I want &frac12; of the &frac14; he's getting"
Response.Write Server.HTMLEncode(Replace(sTemp, "&frac12;", "//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 &frac12; to
> display the half sizes in the drop-down selector, eg Size 3, Size
> 3&frac12;,
> Size 4, Size 4&frac12;, 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 &frac12;
> 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
>
>





All times are GMT. The time now is 11:33 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57