Changeset 16555
- Timestamp:
- 2008-07-25T16:54:47+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/plugins/ReadTextFile.pm
r16392 r16555 400 400 } 401 401 402 my $text_copy = $text; 403 if ($best_encoding =~ /^iso_8859/ && unicode::ensure_utf8(\$text_copy)==0) { 402 if ($best_encoding =~ /^iso_8859/ && &unicode::check_is_utf8($text)) { 404 403 # the text is valid utf8, so assume that's the real encoding 405 404 # (since textcat is based on probabilities)
Note:
See TracChangeset
for help on using the changeset viewer.