humble has asked for the wisdom of the Perl Monks concerning the following question:
Good time of the day.
I use utf8::all everywhere now in my scripts. And i want the scripts to: a) warn me when i open a file that contains non-utf characters rather than die at it; b) be able to process data that is not in unicode (to save a result of the search by linux command "find" that gives my paths in unicode and non-unicode char.s; regexp on the data, etc). - Have i to stop using the utf8 module while opening the file and then enable and convert all the data to unicode? Or there are other ways?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Using pragma utf8::all in processing non-utf data.
by daxim (Curate) on Sep 02, 2013 at 10:08 UTC | |
by perl-diddler (Chaplain) on Sep 02, 2013 at 17:45 UTC | |
by daxim (Curate) on Sep 03, 2013 at 10:44 UTC | |
Re: Using pragma utf8::all in processing non-utf data.
by farang (Chaplain) on Sep 05, 2013 at 05:39 UTC | |
Re: Using pragma utf8::all in processing non-utf data.
by remiah (Hermit) on Sep 04, 2013 at 09:01 UTC | |
by daxim (Curate) on Sep 04, 2013 at 14:34 UTC | |
by remiah (Hermit) on Sep 04, 2013 at 23:56 UTC |
Back to
Seekers of Perl Wisdom