Reputation: 3937
I'm developing a tool to annotate PDF's and came across what I think is an encoding issue: When the user tries to save japanese/arabic/russian/etc text into a text annotation, I'm not really sure how save it. I've been encoding it to utf8 and that worked for simple text in english, but if I try to save
日本語注釈のテスト
It ends up like this:
报本語注é⁄‹ã†®ã…ƒã‡¹ã…‹
Has anyone come across a problem like this? I've been struggling with this and trying different encodings for a couple of days but couldn't really reach a solution
Upvotes: 1
Views: 350
Reputation: 4091
You might need to go through the type of NSString Encodings. These are available japanese encoding
You should check the type of encoding which the source PDF consists of and accordingly apply your manipulations(encoding/decoding) on it.
Upvotes: 1