tags:

views:

220

answers:

1

Hi,

How do I convert the MS Word quotes and apostrophes to regular quotes and apostrophes characters in Java? What's the unicode number for these characters?

i.e., “how are you doing?” ‘howdy’

to

"how are you doing?" 'howdy'

Thanks

Edit: It appears that stackoverflow is already converting it to regular quotes and apostrophes...how do I accomplish the same in Java?

A: 

Here's a very useful link for everyone dealing with Unicode: Unicode helper thing.

Searching for "quotation mark" gives

‘ (U+2018) LEFT SINGLE QUOTATION MARK
’ (U+2019) RIGHT SINGLE QUOTATION MARK
“ (U+201C) LEFT DOUBLE QUOTATION MARK
” (U+201D) RIGHT DOUBLE QUOTATION MARK

There are several other quote-like symbols that you might consider replacing.

Thomas