[Need Help] Utf-8 deconding error: not enough space

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
armisius
Prole
Posts: 10
Joined: Fri Aug 21, 2015 5:57 pm

[Need Help] Utf-8 deconding error: not enough space

Post by armisius »

I was messing arround tring to print and debug my font, wich has a large character set:

Code: Select all

system.charset =  " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,!?-+/():;%&`'*#=[]\"_<>|äëïöüáéíóúàèìòù¨âêîôû^~ÄËÏÖÜÁÉÍÓÚÀÈÌÒÙÂÊÎÔÛñÑ"
And when I try to print this part: %&`'*#=[]\"_<>|äëïöüá I got that error, any ideas?
Image
EDIT: also happents when I try to print these: àèìòù¨âêîôû^~ÄËÏÖÜÁÉÍ
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: [Need Help] Utf-8 deconding error: not enough space

Post by bartbes »

Make sure you've saved your file as utf8, this can happen if the string isn't valid utf-8.
armisius
Prole
Posts: 10
Joined: Fri Aug 21, 2015 5:57 pm

Re: [Need Help] Utf-8 deconding error: not enough space

Post by armisius »

bartbes wrote:Make sure you've saved your file as utf8, this can happen if the string isn't valid utf-8.
Oh I forgot to mention, I'm using a imageFont, and if I print the entire charset It doesn't throw the error
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: [Need Help] Utf-8 deconding error: not enough space

Post by s-ol »

armisius wrote:
bartbes wrote:Make sure you've saved your file as utf8, this can happen if the string isn't valid utf-8.
Oh I forgot to mention, I'm using a imageFont, and if I print the entire charset It doesn't throw the error
You probably accidentally deleted "half a character" somewhere I would guess. As bartbes said, make sure your editor is set to Utf-8 and retype/copy the string

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
armisius
Prole
Posts: 10
Joined: Fri Aug 21, 2015 5:57 pm

Re: [Need Help] Utf-8 deconding error: not enough space

Post by armisius »

S0lll0s wrote:
armisius wrote:
bartbes wrote:Make sure you've saved your file as utf8, this can happen if the string isn't valid utf-8.
Oh I forgot to mention, I'm using a imageFont, and if I print the entire charset It doesn't throw the error
You probably accidentally deleted "half a character" somewhere I would guess. As bartbes said, make sure your editor is set to Utf-8 and retype/copy the string
Thanks but I've discovered that I can use ttf fonts :awesome:, thanks guys for your time :3
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests