472,800 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,800 software developers and data experts.

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 2838
<%
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andres Rosado-Sepulveda | last post by:
Hello, I'm having trouble compiling PHP 4.3.4 on Solaris 8. This is the error message it is showing: -- start -- Undefined first referenced symbol ...
0
by: Michael Fork | last post by:
Note: I pasted the code the attachments as plain text after the message (I wasn't able to post it with an attachment...) Attached are the XSL and XML files that I am having problems with. I am...
15
by: Rob Ratcliff | last post by:
I'm compiling the latest version of a CORBA ORB called MICO on a Cray X1. It makes heavy use of templates and namespaces. Up until the link step, the C++ source code compiled flawlessly. But, when...
19
by: nb | last post by:
What kind of problems is c# best at solving?
1
by: Ranjay | last post by:
i've installed db2 on my aix box with the following configuration bash-3.00$ uname -a -v -r AIX symibm10 2 5 00CE60AA4C00 bash-3.00$ oslevel 5.2.0.0 I installed it in the compact mode and...
8
by: mickey22 | last post by:
Hi all, I am trying to compile a VC++ project and it is win32 console application.When I try to compile it I get a lot of linking problems.I have included all the header files needed for the...
2
by: huzzaa | last post by:
1>Employee main.obj : error LNK2019: unresolved external symbol "public: void __thiscall Employee::nameDisplay(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>...
7
by: jomcfall97 | last post by:
hey wondering if anyone can help me with some work im doing im trying to remove a record from a queue by using a method from a class. class QueueNode { private String document ; private String...
1
by: aitia | last post by:
this the code. i used ECLIPSE to run this.. it has some codes smells that i can't seem to figure out.. can any one help? import java.io.*; import java.util.*; public class Postfix { private...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.