in reply to Perl Encoding
If your encoding is properly understood by your perl, try matching the unicode properties,
# IsZl - line separator # IsZp - paragraph separator /\p(IsZl)%/ and print 'True newline in ', $/; [download]
After Compline,Zaxo