when copy to clipboard , the selected string is not UTF8 encoded.
I have tested with English-only PDF, everything is OK except some NON-ascii characters .
When I tested with Chinese or Korean, it seems characters are not encoded properly.
How can I convert the selected string to UTF8 string?
Thanks in advance.
FYI, I used following code .
(void)contentView:(PDFPageContentView *)contentView copyMenuSelected:(NSString *)selectedString { UIPasteboard *pb = [UIPasteboard generalPasteboard]; [pb setString:selectedString]; }