[scripts] Going to utf-8

This commit is contained in:
Pierre-Elliott Bécue 2013-05-04 19:19:36 +02:00
parent c4a19a88ed
commit a1bf0a4547
54 changed files with 676 additions and 573 deletions

View file

@ -51,7 +51,7 @@ droits = db.search("uid=%s" % script_utilisateur)['adherent'][0].droits()
isimprimeur = u"Imprimeur" in droits
iscontroleur = u'Tresorier' in droits
isbureau = u'Bureau' in droits
encoding = sys.stdin.encoding or 'ISO-8859-15'
encoding = sys.stdin.encoding or 'UTF-8'
if u'Nounou' in droits:
if os.path.exists(os.path.expanduser('~/.dialogrc')):
@ -1892,7 +1892,7 @@ def select(clas, quoi, mde=''):
s= ['', '', '', '', '', '', '', '', '', '']
def f(a):
try:
return unicode(a, 'iso-8859-15')
return unicode(a, 'utf-8')
except:
return a
while 1: