neitanod / forceutf8

PHP Class Encoding featuring popular Encoding::toUTF8() function --formerly known as forceUTF8()-- that fixes mixed encoded strings.
1.63k stars 369 forks source link

no support for source encoding UTF16 (LE/BE) #77

Open FredoVelcro-zz opened 5 years ago

FredoVelcro-zz commented 5 years ago

Hello, It does not work with UTF16 source encoding. How to solve this ? (very hard task) Thanks Best regards

voku commented 5 years ago

@FredoVelcro you can use UTF8::encode(), it will use UTF8::str_detect_encoding() in the background to detect UTF-16 and UTF-32.

I hope this will help you && happy coding!