in reply to Regexp with unicode problem

Try to convert all your text strings into UTF-8

Replies are listed 'Best First'.
Re^2: Regexp with unicode problem
by demis (Novice) on Feb 08, 2010 at 13:24 UTC
    how do I do this? Not with use utf? This is for having utf in the code e.g.
    my $string='ΔΙΑΜΕΡΙΣΜ&#91 +3;'; if($field =~/$string/){ ....}
      Perhaps this (untested)
      use Unicode::String; Unicode::String->stringify_as( 'utf8' ); my $string = "This is latin text."; my $string_utf8 = Unicode::String::latin1( $string ); print $string_utf8;
      Never had to use it myself, but had this snippet from a long time ago.
      /\ Sierpinski