469,904 Members | 2,290 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,904 developers. It's quick & easy.

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
Jul 22 '05 #1
2 2698
<%
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" <in**@noemail.com> wrote in message news:#P**************@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



Jul 22 '05 #2
Genius!!!
"Steven Burn" <so*******@in-time.invalid> wrote in message
news:eD**************@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" <in**@noemail.com> wrote in message
news:#P**************@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

Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Andres Rosado-Sepulveda | last post: by
reply views Thread by Michael Fork | last post: by
15 posts views Thread by Rob Ratcliff | last post: by
8 posts views Thread by mickey22 | last post: by
2 posts views Thread by huzzaa | last post: by
7 posts views Thread by jomcfall97 | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.