Page 1 of 1

How can I print accents ?

Posted: Sun Dec 04, 2011 1:15 pm
by A.C
Hello!

I recently started to work with LÖVE but I have a little trouble.
Can someone explain me how to print words with accents ?

Code: Select all

love.graphics.print("Héhé", 0, 0)
When I use this code, I obtain something like that :
Image

It seems to be an encoding problem but I don't know how to fix it.
If someone has an answer..

Thank you ! :P

Re: How can I print accents ?

Posted: Sun Dec 04, 2011 1:36 pm
by bartbes
0.8.0 introduces UTF-8 encoding for love.graphics.print, before it used the system encoding.. I think.. There's bound to be someone who knows what encoding works. (Boolsheet, perhaps?)

Re: How can I print accents ?

Posted: Sun Dec 04, 2011 6:45 pm
by Boolsheet
LÖVE 0.7.2 uses 8-bit encoding with the first 256 characters of unicode. It's basically ISO 8859-1. Your editor should be able to encode to that.

Re: How can I print accents ?

Posted: Sun Dec 04, 2011 8:38 pm
by A.C
Hoo.. Thank you both ! My editor was settled in UTF-8 whereas I thought I had put it in ISO-8859.
Stupid.. :x