Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help,
read this .
A.C
Prole
Posts: 2 Joined: Sun Dec 04, 2011 1:04 pm
Location: France
Post
by A.C » Sun Dec 04, 2011 1:15 pm
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 ?
When I use this code, I obtain something like that :
It seems to be an encoding problem but I don't know how to fix it.
If someone has an answer..
Thank you !
bartbes
Sex machine
Posts: 4946 Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:
Post
by bartbes » Sun Dec 04, 2011 1:36 pm
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?)
Boolsheet
Inner party member
Posts: 780 Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland
Post
by Boolsheet » Sun Dec 04, 2011 6:45 pm
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.
Shallow indentations.
A.C
Prole
Posts: 2 Joined: Sun Dec 04, 2011 1:04 pm
Location: France
Post
by A.C » Sun Dec 04, 2011 8:38 pm
Hoo.. Thank you both ! My editor was settled in UTF-8 whereas I thought I had put it in ISO-8859.
Stupid..
Users browsing this forum: Bing [Bot] and 9 guests