![]() |
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 |
Re: Problems with the half symbol
<%
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 > > |
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 ½ 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 > > |
| 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.