diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-09-23 18:49:35 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-09-23 18:49:35 +0200 |
commit | 232c798f15141f88fbc1c9e92eb18cbd643fa283 (patch) | |
tree | 7b9a7e4a2a01a9807ecb1ebb327a7b7f7953c25f /localmarkdown2sms | |
parent | 908fa5b08fb2fc1bfd8ed4f466e7ecffbe113aac (diff) |
Avoid unnecessary recoding from/to UTF-8 (which also unsets UTF8 flag?).
Diffstat (limited to 'localmarkdown2sms')
-rwxr-xr-x | localmarkdown2sms | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/localmarkdown2sms b/localmarkdown2sms index 0340084..8ad0f18 100755 --- a/localmarkdown2sms +++ b/localmarkdown2sms @@ -204,11 +204,11 @@ sub tidymsg { sub transliterate { my $string = shift @_; - my $res = encode('UTF-8', decode('GSM0338', encode('GSM0338', decode('UTF-8', $string), sub { + my $res = decode('GSM0338', encode('GSM0338', $string, sub { my $ascii = unidecode(chr $_[0]); _utf8_off($ascii); $ascii; - }))); + })); return $res; } |