diff options
Diffstat (limited to 'rhnop-server/rddb.lua')
-rw-r--r-- | rhnop-server/rddb.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rhnop-server/rddb.lua b/rhnop-server/rddb.lua index c8037a9..f1cc656 100644 --- a/rhnop-server/rddb.lua +++ b/rhnop-server/rddb.lua @@ -38,11 +38,16 @@ function rddb:init() return nil, err end + local ret, err = self.con:execute("SET CHARACTER SET utf8") + if ret == nil then + return nil, err + end + return true end function rddb:getCartInfo(cartnum) - local cur, err = self.con:execute("select TITLE,ARTIST,ALBUM from CART where NUMBER = " .. self.con:escape(cartnum)); + local cur, err = self.con:execute("select TITLE,ARTIST,ALBUM from CART where NUMBER = " .. self.con:escape(cartnum)) if cur == nil then return nil, err end |