$ echo $LANG
en_GB.UTF-8
$ LANG=fr_CH.iso-8859-15
$ echo $LANG
fr_CH.iso-8859-15
$ qarte -d
19:49:39: INFO - qarte Qarte-4.6.0
19:49:39: INFO - qarte Python 3.5.3 on Linux-4.17
19:49:39: INFO - qarte File system encoding: ascii
19:49:39: INFO - qarte System encoding: utf-8
19:49:39: INFO - qarte Locale encoding: ('fr_CH', 'ISO8859-15')
19:49:39: INFO - core Set workspace
19:49:39: INFO - artetv Can't load summaries: 'ascii' codec can't decode byte 0xc3 in position 107: ordinal not in range(128)
19:49:39: INFO - artetv Fetch page: https://www.arte.tv/fr/guide/20180918/
19:49:41: INFO - arteconcert Get update ...
19:49:41: INFO - arteconcert Concert list updated
Traceback (most recent call last):
File "/usr/share/qarte/core.py", line 228, in set_videos_list
self.artelive.config_parser()
File "/usr/share/qarte/arteconcert.py", line 84, in config_parser
self.update_concerts()
File "/usr/share/qarte/arteconcert.py", line 103, in update_concerts
outf.write(cnt)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe8' in position 20: ordinal not in range(128)
Aborted
Puis fermer terminal. Nouveau terminal.
$ echo $LANG
en_GB.UTF-8
$ qarte -d
pas de crash
Je peux répliquer sans même faire une recherche filtre
Je ne suis pas un pro des ''locales''
$ locale
LANG=en_GB.UTF-8
LANGUAGE=en_GB
locale -a | egrep 'fr_CH|iso8859'
en_GB.iso885915
en_US.iso885915
fr_CH
fr_CH.utf8
Je rajoute les locales CH
# cat /etc/locale.gen | grep fr_CH
fr_CH ISO-8859-1
fr_CH.UTF-8 UTF-8
$ sudo locale-gen fr_CH.ISO-8859-1 ISO-8859- 1... done
Generating locales (this might take a while)...
en_GB.UTF-8... done
fr_CH.
fr_CH.UTF-8... done
fr_FR.UTF-8... done
Generation complete.
$ locale -a | egrep 'fr_CH|iso8859'
en_GB.iso885915
en_US.iso885915
fr_CH
fr_CH.iso88591
fr_CH.utf8
$ echo $LANG CH.iso- 8859-15
en_GB.UTF-8
$ LANG=fr_
$ echo $LANG
fr_CH.iso-8859-15
$ qarte -d
19:49:39: INFO - qarte Qarte-4.6.0
19:49:39: INFO - qarte Python 3.5.3 on Linux-4.17
19:49:39: INFO - qarte File system encoding: ascii
19:49:39: INFO - qarte System encoding: utf-8
19:49:39: INFO - qarte Locale encoding: ('fr_CH', 'ISO8859-15')
19:49:39: INFO - core Set workspace
19:49:39: INFO - artetv Can't load summaries: 'ascii' codec can't decode byte 0xc3 in position 107: ordinal not in range(128) /www.arte. tv/fr/guide/ 20180918/ qarte/core. py", line 228, in set_videos_list artelive. config_ parser( ) qarte/arteconce rt.py", line 84, in config_parser update_ concerts( ) qarte/arteconce rt.py", line 103, in update_concerts
19:49:39: INFO - artetv Fetch page: https:/
19:49:41: INFO - arteconcert Get update ...
19:49:41: INFO - arteconcert Concert list updated
Traceback (most recent call last):
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
outf.write(cnt)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe8' in position 20: ordinal not in range(128)
Aborted
Puis fermer terminal. Nouveau terminal.
$ echo $LANG
en_GB.UTF-8
$ qarte -d
pas de crash