Skip to content

Commit

Permalink
Added a default detection order for mb_detect_encoding.
Browse files Browse the repository at this point in the history
This ensures that at least the result will be predictable.
  • Loading branch information
evert committed May 17, 2012
1 parent 800529c commit 462e6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phpDocumentor/Reflection/File.php
Expand Up @@ -191,7 +191,7 @@ protected function convertToUtf8($filename, $contents)
&& function_exists('mb_detect_encoding')
) {
// OR with mbstring
$encoding = mb_detect_encoding($contents);
$encoding = mb_detect_encoding($contents,'UTF-8,ISO-8859-1');
}

// if the encoding is detected as binary we try again
Expand Down

0 comments on commit 462e6ab

Please sign in to comment.