How can I print accents ?

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.
Post Reply
User avatar
A.C
Prole
Posts: 2
Joined: Sun Dec 04, 2011 1:04 pm
Location: France

How can I print accents ?

Post 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
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: How can I print accents ?

Post 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?)
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: How can I print accents ?

Post 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.
Shallow indentations.
User avatar
A.C
Prole
Posts: 2
Joined: Sun Dec 04, 2011 1:04 pm
Location: France

Re: How can I print accents ?

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests