Page 1 of 1
[Need Help] Utf-8 deconding error: not enough space
Posted: Sun Sep 20, 2015 7:52 pm
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?
EDIT: also happents when I try to print these:
àèìòù¨âêîôû^~ÄËÏÖÜÁÉÍ
Re: [Need Help] Utf-8 deconding error: not enough space
Posted: Sun Sep 20, 2015 7:56 pm
by bartbes
Make sure you've saved your file as utf8, this can happen if the string isn't valid utf-8.
Re: [Need Help] Utf-8 deconding error: not enough space
Posted: Mon Sep 21, 2015 3:16 am
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
Re: [Need Help] Utf-8 deconding error: not enough space
Posted: Mon Sep 21, 2015 6:50 am
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
Re: [Need Help] Utf-8 deconding error: not enough space
Posted: Mon Sep 21, 2015 2:58 pm
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
, thanks guys for your time