Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Handling smart/curly quotes in Java

807580Jan 31 2010 — edited Jan 31 2010
Hi - I want to know how to handle smart / curly quotes in Java. I need to replace them with actual quotes. I was trying somethin like below.

xmlString = xmlString .replaceAll( "‘", "'" );

but this is not working. Just tried to print indexOf( ""‘") and it only returns -1. I was trying to use the html equiv value inside i.e &#8216(folowed by semicolon. the preview replaces it with actual value)

Pls guide me on this. Its urgent!!

-Thanks,
Magesh

Edited by: magesh_rathnam on Jan 31, 2010 7:09 PM

Edited by: magesh_rathnam on Jan 31, 2010 7:10 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2010
Added on Jan 31 2010
6 comments
737 views