Registry / utility / neitanod-forceutf8

neitanod-forceutf8

JSON →
library2.0.4phppackagistunverified

PHP Class Encoding featuring popular Encoding::toUTF8() function --formerly known as forceUTF8()-- that fixes mixed encoded strings.

composer require neitanod/forceutf8
INSTALL
IMPORT
SIG · NEITANOD-FORCEUTF8
N
neitanod-forceutf8
utilityphpv2.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Encoding
use ForceUTF8\Encoding;

Convert a mixed-encoded string to UTF-8.

use ForceUTF8\Encoding; $utf8String = Encoding::toUTF8($mixedString);
Debug
Known issues
gotchaMay not handle all edge cases of mixed encoding
fix
Test thoroughly with your data.
affects: *
Upgrade
Version history
2.0.4latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
neitanod-forceutf8 — pip install neitanod-forceutf8 · libregistry