One solution may be to pop the String into a String Buffer and every
time you run across the single quote append a second single quote.
However, note these caveats . . must use the ASCII represtation for a
single quote. I have found this is a quirk related to Databases.
----- Original Message -----
From: Bhushan Bhangale <[EMAIL PROTECTED]>
Date: Wednesday, January 3, 2001 9:50 am
Subject: Single quot problem on MAC
> Hi All
>
> I am using ATG Dynamo 4.5.1 application server on Solaris machine
> with Oracle 8i as databse in UTF-8 format for a mulilingual site.
> We have japanese locale also in our site which uses two byte
> character encoding.
>
> There is a form on the screen where the input goes into a database
> table.
> On MAC machine if i open the form in browser and write some thing
> in it which has a single quote and submit it goes inside the
> database, no problem here. But when i retrieve the same it throws
> an exception saying 'UnsupportedEncodingException'. It is because
> for english locale we have specified the charset as ISO_8859_1 (in
> Application server) and it is unable to encode that character.
>
> On other machines(non MAC) it is working fine.
>
> I faced this problem in normal servlets and ASCII format DB/2
> database with IBM Websphere. There the database just converts that
> character into ?, because probably the character's integer value
> in macintosh is different then the value in other operating system.
>
> The link - http://www.kanzaki.com/docs/charset.html - says it is
> same, then why i m facing this problem.
>
>
> Thanks & Regards
> Bhushan Bhangale
> Consultant
> http://www.netacross.com
> Chequemail.com - a free web based e-mail service that also pays!!!
> http://www.chequemail.com
>
>
________________________________________________________________________
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http:
> Resources: http://java.sun.com/products/servlet/external-
> resources.htmlLISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html