Bonjour,
Je n'ai connais rien on programmation mais pour me faciliter la tâche à mettre a jour un projet (Liste Arabe Adblock Plus) sur le dépôt mercurial de google : http://code.google.com/p/liste-ar-ad...source/browse/. j'ai suivi un tutoriel pour qui nécessite l'installation de Python mais je suis bloquer quand je veux patcher le fichier modifier Liste_AR.txt parce qu'il contient des caractère en arabe et le fichier text est codé par défaut utf-8 !
voila le message d'erreur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
D:\liste-ar-adblock>FOP.py
============================================
FOP (Filter Orderer and Preener) version 3.6
============================================
 
Primary location: D:\liste-ar-adblock\
Current directory: D:\liste-ar-adblock\
 
The following changes have been recorded by the repository:
Traceback (most recent call last):
  File "D:\liste-ar-adblock\FOP.py", line 398, in <module>
    start()
  File "D:\liste-ar-adblock\FOP.py", line 85, in start
    main(os.getcwd())
  File "D:\liste-ar-adblock\FOP.py", line 146, in main
    commit(repository, basecommand, originaldifference)
  File "D:\liste-ar-adblock\FOP.py", line 301, in commit
    print(difference.decode("utf-8"))
  File "C:\Python33\lib\encodings\cp850.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 215-221:
 character maps to <undefined>
merci pour votre aide.