FIX: soundcloud.lua: Multi-byte char handling
commit82d18183116b43699e978c081206163105d73737
authorBastien Nocera <hadess@hadess.net>
Sun, 18 Dec 2011 21:51:11 +0000 (18 22:51 +0100)
committerToni Gundogdu <legatvs@gmail.com>
Tue, 28 Feb 2012 08:02:35 +0000 (28 10:02 +0200)
tree65e03dbf731f66743b9780f54fc477df70f3fd63
parentca784e3fbdaacf00b740da9106618458f4f92c4e
FIX: soundcloud.lua: Multi-byte char handling

The previous code only worked for unicode escaped characters
that didn't contain any characters on the range a-f as we matched
with %d. Furthermore, we didn't handle values >= 256 when unescaping
them. This is now fixed using the helper code from:
http://luaparse.luaforge.net/libquery.lua.html
share/lua/website/soundcloud.lua