Changeset 23387 for main/trunk/greenstone2/perllib/plugins/ReadTextFile.pm
- Timestamp:
- 2010-12-06T13:15:10+13:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/ReadTextFile.pm
r23363 r23387 307 307 $reader->set_encoding($encoding); 308 308 $reader->decode_text($raw_text,$textref); 309 310 # At this point $$textref is a binary byte string 311 # => turn it into a Unicode aware string, so full 312 # Unicode aware pattern matching can be used. 313 # For instance: 's/\x{0101}//g' or '[[:upper:]]' 314 315 $$textref = decode("utf8",$$textref); 309 316 } 310 317 }
Note:
See TracChangeset
for help on using the changeset viewer.