>
> > - How should Spanish (or non-English) people define locales? This is an
> old
> > problem with utf-8. Right now, I have LC_ALL=es_ES.UTF-8, but I had tried
> > with [EMAIL PROTECTED] And in local_conf.py, no LOCALE defined, or with
> "iso-8859".
> > Well, if I use non-English texts in my config or in fxd files, freevo
> > crashes, with that famous error about utf-8 can't decode xx byte. But the
> > translated strings have non-English characters! (á, é, í, ó, ú, ñ) What
> > should I do?
>
> In local_conf.py you need, LOCALE = 'iso-8859-15', did you forget the -1
> or -15?
>
> works for me.
>
>
I have a similar issue. In my case, Freevo 1.8.2 doesn't crash, but strings
with utf-8 characters appears as multibyte:
local.conf:
--------------
# coding=utf-8
LOCALE = 'utf8'
[....]
HEADLINES_LOCATIONS = [
('El País',
'http://www.elpais.es/rss.html'<http://www.elpais.es/rss.html%27>
),
]
Then I run:
LC_ALL=es_ES.UTF-8 ./freevo
It appears in Freevo:
El PaÃ-s
though I can see accented chars in menus.
If I convert local.conf to ISO-8859-1,
# coding=iso-8859-1
LOCALE = 'iso-8859-1'
and run freevo, I can see accented chars, but freevo complaints:
/home/francis/freevo-1.8.2/lib/python2.5/site-packages/freevo/osd.py:161:
UnicodeWarning: Unicode equal comparison failed to convert both arguments to
Unicode - interpreting them as being unequal
return self.chars[c]
/home/francis/freevo-1.8.2/lib/python2.5/site-packages/freevo/osd.py:164:
UnicodeWarning: Unicode equal comparison failed to convert both arguments to
Unicode - interpreting them as being unequal
self.chars[c] = w
I think this is an old issuse. Time ago, there was a thread in which Duncan
suggested:
"It's best to have your locale set to your actual locale, ie latin-1 or
iso8859-1.
This is because the way the Unicode function works. It first tries the
encoding from LANG (or LC_ALL), if this fails it tries LOCALE from
locale_conf and finally it tries iso-8859-15."
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users