Skip to content

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

@Douglas-BJ

Description

@Douglas-BJ

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions