How to use the Perl split() function with Arabic text?

shafaki

New member
I have a text file containing Arabic text. I have tried to use the split() function in Perl to process the Arabic text but it seems to handle it incorrectly.

Do I have to prepare the string variables in any special way (such as to use unicode or utf8) first before working on them so that the split() function would work correctly in Perl? I am using Perl version 5.12.0
 
Back
Top