Re: DL Error : File not UTF8



Hello,
We at the German team have a similar error message when trying to commit a translation:

'ascii' codec can't encode character '\xfc' in position 7: ordinal not in range(128)

See this translation: https://l10n.gnome.org/vertimus/gucharmap/master/po/de/
Philipp

Am Di., 14. Sept. 2021 um 21:32 Uhr schrieb Matej Urban via gnome-i18n <gnome-i18n gnome org>:
Hello,
im getting a similar error, but different encoding ... »'ascii' codec can't encode character '\u010d' in position 11: ordinal not in range(128)«.
Is this me or the system?
Hopefully it is the system, because I can not find the problem ;).

Thank you.
Matej

On Sat, Jul 24, 2021 at 3:47 PM Rafael Fontenelle <rafaelff gnome org> wrote:
Hi Matej,

Yes, it is related. If the system has no locale set (which usually is
UTF-8) then the default ASCII is used (depending on the distro,
obviously). When this ASCII-encoded system finds an UTF-8 special
character, like "é", "č" etc., these chars are not interpreted
correctly. I believe the error message you quoted is from
UnicodeDecodeError: search "UnicodeDecodeError" in
https://docs.python.org/3/howto/unicode.html#the-string-type

Note: even if English interface is desired, the "en_US.UTF-8" locale
should be set.

Best regards,
Rafael Fontenelle


On Fri, Jul 23, 2021 at 4:49 PM Matej Urban <matej urban gmail com> wrote:
>
> Hello,
> is error »'ascii' codec can't encode character '\u010d' in position 11: ordinal not in range(128)«. related to UTF8 problem?
>
> Lately I get a lot of errors, and now I do not know, how to solve them.
>
> Thank you,
> Matej
>
> On Mon, Jul 19, 2021 at 3:24 PM Rafael Fontenelle <rafaelff gnome org> wrote:
>>
>> This is happens to all modules in all languages, and is being tracked in this issue:
>>
>> https://gitlab.gnome.org/Infrastructure/damned-lies/-/issues/246
>>
>> Beste regards,
>> Rafael Fontenelle
>>
>> Em seg, 19 de jul de 2021 10:13, Matej Urban via gnome-i18n <gnome-i18n gnome org> escreveu:
>>>
>>> Hello,
>>> Lately I'm getting strange errors, that I can not make sense of. Looking at the e.g. Sloveninan translation of evolution package in DL https://l10n.gnome.org/vertimus/evolution/gnome-40/po/sl/ it shows an error that it is not in UTF8.
>>> But it is!
>>>
>>> Is there a way to find out, if there is maybe a character there, that's causing the problems?
>>>
>>> Thank you,
>>> Matej
>>> _______________________________________________
>>> gnome-i18n mailing list
>>> gnome-i18n gnome org
>>> https://mail.gnome.org/mailman/listinfo/gnome-i18n
_______________________________________________
gnome-i18n mailing list
gnome-i18n gnome org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]