forceutf8 icon indicating copy to clipboard operation
forceutf8 copied to clipboard

UTF8 encoding issue where curly single apostrophe being converted as?

Open cbielich opened this issue 6 years ago • 4 comments

I am having an issue with where a curly apostrophe is being converted as a ?

you’ll

converts to

you?ll

Any ideas on how to fix this?

cbielich avatar Aug 31 '19 20:08 cbielich

I also want a fix for that, otherwise I need to fix it.

chriseikermann avatar Sep 05 '19 15:09 chriseikermann

That happens when you use toUTF8() or fixUTF8() ?

On Thu, Sep 5, 2019, 12:48 chriseikermann [email protected] wrote:

I also want a fix for that, otherwise I need to fix it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/neitanod/forceutf8/issues/81?email_source=notifications&email_token=AAWP6XXBEQVPOYVWCXDXJXTQIES45A5CNFSM4ISUYRBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD57UE3I#issuecomment-528433773, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWP6XRY2HDK3X7JDXDNAATQIES45ANCNFSM4ISUYRBA .

neitanod avatar Sep 06 '19 02:09 neitanod

it happened for fixUTF8()

Test::identical("Chris’d", Encoding::fixUTF8("Chris’d"), "Chris’d");

or is it necessary to use Encoding::ICONV_TRANSLIT

chriseikermann avatar Sep 06 '19 13:09 chriseikermann

Just wanted to say thanks for this library, but note that I am also seeing this bug, even with a simple:

Encoding::::fixUTF8(('you’ll')

No issue with that when using toUTF8 instead.

adrianbj avatar Mar 17 '20 21:03 adrianbj