The quotation marks (apostrophe to be more specific) single and double are displaying as question mark on my text view.
The problem come up when I try to copy and paste some thing from a webpage and save it.
This problem does not happen when I type the sentence.
How can I replace a apostrophe with a regular single quote?
views:
188answers:
1
A:
When you copy from a webpage you are not copying a plain old apostrophe. You are copying a fancy one that looks very similar but is not. Since the text view only displays plain text it cannot understand your fancy apostrophe.
When you copy from a webpage you will have to manually delete and retype the apostrophes.
You have to do a string replace probably with unicode characters. The following may be the characters that you want to replace:
Char Unicode HTML “ 8220 “ ‘ 8216 ‘ ” 8221 ” ’ 8217 ’
Vincent Ramdhanie
2010-02-18 21:05:53
you are right, the problem happens with the fancy apostrophe. I want to clean the string before i show it up on the textview. So the question now is how and what should I search for and replace in my string? Thanks
Oceandrive
2010-02-18 21:21:08