Problem using accents
Posted: Wed Jan 09, 2013 6:29 am
Hi lövers,
I'm trying to build a gui and i have a problem using accented letters in user input.
Considering this code,
accented letters (é,è...) never print, neither the unicode in the console.
I'm using a french keyboard.
I hope someone could help me to fix this
Thanks !
I'm trying to build a gui and i have a problem using accented letters in user input.
Considering this code,
Code: Select all
function love.load()
text = "Type away! -- "
end
function love.keypressed(key, unicode)
-- ignore non-printable characters (see http://www.ascii-code.com/)
if unicode > 31 and unicode < 127 then
text = text .. string.char(unicode)
print(unicode)
end
end
function love.draw()
love.graphics.printf(text, 0, 0, 800)
end
I'm using a french keyboard.
I hope someone could help me to fix this
Thanks !