Home All Groups Group Topic Archive Search About
Author
28 Mar 2006 10:43 AM
Cerebrus
Hi,

Actually I think I have an idea what AZNewsh is doing. He is using a
familiar technique to clean up his HTML before it enters the database.
Something similar to preventing SQL Injection, I think.

So, he is converting a single quote to 2 single quotes, and when
retrieving data back from the database, he is converting the 2 single
quotes back to a single quote.

Though I have no idea why he could be getting an "inverted question
mark" (Yes, that's what it's called, according to Charmap.)

Regards,

Cerebrus.

Author
3 Apr 2006 11:05 PM
AZNewsh
Correct that is exactly what I am trying to do, it works fine in so far
as it cleans up the quotes before entering the database. I have since
been informed that it doesn't actually replace with 2 single quotes,
just fools Oracle somehow, so i actually don't need to reverse it, it
does however even look like a an inverted question mark even in the
database when viewed through Toad, haven't tried SQL Plus but expect
the same, I did put a replace in place that will now convert the
inverted question mark back to an apostrophe, when selecting and this
works but seems like a rather none elegant solution

Any thoughts?

AZNewsh
Author
6 Apr 2006 2:23 AM
Homer J Simpson
Show quote Hide quote
"AZNewsh" <g*@dana.ucc.nau.edu> wrote in message
news:1144105532.700634.283530@i39g2000cwa.googlegroups.com...

> Correct that is exactly what I am trying to do, it works fine in so far
> as it cleans up the quotes before entering the database. I have since
> been informed that it doesn't actually replace with 2 single quotes,
> just fools Oracle somehow, so i actually don't need to reverse it, it
> does however even look like a an inverted question mark even in the
> database when viewed through Toad, haven't tried SQL Plus but expect
> the same, I did put a replace in place that will now convert the
> inverted question mark back to an apostrophe, when selecting and this
> works but seems like a rather none elegant solution
>
> Any thoughts?

ISTR that Oracle has weird notions about some characters, including
wildcards. It also has optional character map pages. Don't know if it helps.