xref: /php-src/ext/mbstring/tests/bug81349.phpt (revision 14173186)
1--TEST--
2Bug #81349: mb_detect_encoding misdetcts ASCII in some cases
3--EXTENSIONS--
4mbstring
5--FILE--
6<?php
7
8echo(mb_detect_encoding("\xe4,a", ['ASCII', 'UTF-8', 'ISO-8859-1'])."\n");
9echo(mb_detect_encoding("\xe4 a", ['ASCII', 'UTF-8', 'ISO-8859-1'])."\n");
10
11?>
12--EXPECT--
13ISO-8859-1
14ISO-8859-1
15