diff --git a/src/Ratchet/App.php b/src/Ratchet/App.php index 0b151b0..99deb4e 100644 --- a/src/Ratchet/App.php +++ b/src/Ratchet/App.php @@ -59,6 +59,10 @@ class App { trigger_error("XDebug extension detected. Remember to disable this if performance testing or going live!", E_USER_WARNING); } + if (3 !== strlen('✓')) { + throw new \DomainException('Bad encoding, length of unicode character ✓ should be 3. Ensure charset UTF-8 and check ini val mbstring.func_autoload'); + } + if (null === $loop) { $loop = LoopFactory::create(); }