From 82df5523c1d148aaf90aaad13fa451f22491cf27 Mon Sep 17 00:00:00 2001 From: Alexander Yakushev Date: Mon, 7 Nov 2011 23:13:17 +0200 Subject: Reverted to 4-digits UTF symbols from Jamendo Still no idea how to tell apart symbol (\uXXXX)foo from (\uXXXXf)oo where parentheses mark an UTF symbol. --- jamendo.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jamendo.lua b/jamendo.lua index 23aae2c..a6989c6 100644 --- a/jamendo.lua +++ b/jamendo.lua @@ -300,8 +300,8 @@ end -- them into symbols so we need to do it ourselves. function utf8_codes_to_symbols (s) local hexnums = "[%dabcdefABCDEF]" - local pattern = string.format("\\u(%s%s%s%s?%s?)", - hexnums, hexnums, hexnums, hexnums, hexnums) + local pattern = string.format("\\u(%s%s%s%s?)", + hexnums, hexnums, hexnums, hexnums) local decode = function(code) code = tonumber(code, 16) if code < 128 then -- one-byte symbol -- cgit v1.2.3