diff --git a/src/Faker/Provider/zh_TW/Text.php b/src/Faker/Provider/zh_TW/Text.php index 649d6fec30..3521f7a485 100644 --- a/src/Faker/Provider/zh_TW/Text.php +++ b/src/Faker/Provider/zh_TW/Text.php @@ -169,14 +169,19 @@ protected static function utf8Encoding($text) switch (true) { case $ord > 251: $temp .= $chars[++$i]; + // no break case $ord > 247: $temp .= $chars[++$i]; + // no break case $ord > 239: $temp .= $chars[++$i]; + // no break case $ord > 223: $temp .= $chars[++$i]; + // no break case $ord > 191: $temp .= $chars[++$i]; + // no break } $encoding[] = $temp;