Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I convert the selected string to UTF8 string? #7

Open
Douglas-BJ opened this issue Jun 14, 2015 · 1 comment
Open

How can I convert the selected string to UTF8 string? #7

Douglas-BJ opened this issue Jun 14, 2015 · 1 comment

Comments

@Douglas-BJ
Copy link

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]; }

@semweb
Copy link
Owner

semweb commented Jun 16, 2015

I can copy and paste a selected string on my Japanese PDF. Some UTF-8 characters may be not supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants