Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: unicode in windowsby ikegami (Patriarch) |
on Oct 19, 2006 at 06:10 UTC ( [id://579282]=note: print w/replies, xml ) | Need Help?? |
What have you tried? The following works for me:
The :raw prevents the CRLF->LF conversion when reading and the LF->CRLF when writting. The conversion only works with single-byte, ASCII-based (i.e. LF=0xA, CR=0xD) encodings. Use :raw:encoding(utf16le) if the file was saved using encoding "Unicode"
Update: Added example regexp to code.
In Section
Seekers of Perl Wisdom
|
|