Help for this page

Select Code to Download


  1. or download this
    sub sms_encode {
        my $text = shift or return undef;
        my $new = from_utf8({-string => $text, -charset => 'ISO-8859-1'});
        return $new;
    }
    
  2. or download this
    sub sms_encode {
        my $text = shift or return undef;
    ...
        $new =~ s/$placeholder/€/; # Regex B
        return $new;
    }