Probable bad attribution between unicode and utf8.
>pwb.py interwiki -wiktionary -lang:pt -auto -async -cleanup -pt:1 -cat:!Entrada_(Francês) -debug
```
No changes needed on page [[el:août]]
Updating links on page [[fi:août]].
Changes to be made: Bot: Adding [[an:août]], [[ie:août]]
@@ -18,0 +19 @@
+ [[an:août]]
@@ -38,0 +40 @@
+ [[ie:août]]
@@ -66 +68 @@
- [[zh:août]]
+ [[zh:août]]
NOTE: Updating live wiki...
Updating links on page [[pt:août]].
Changes to be made: Bot: Adding [[an:août]], [[ie:août]]
Dump pt (wiktionary) appended.
Traceback (most recent call last):
File "C:\Work\pywikipedia\pwb.py", line 239, in <module>
if not main():
File "C:\Work\pywikipedia\pwb.py", line 233, in main
run_python_file(filename, [filename] + args, argvu, file_package)
File "C:\Work\pywikipedia\pwb.py", line 111, in run_python_file
** Page [[fi:août]] saved**
main_mod.__dict__)
File ".\scripts\interwiki.py", line 2641, in <module>
main()
File ".\scripts\interwiki.py", line 2616, in main
bot.run()
File ".\scripts\interwiki.py", line 2360, in run
self.queryStep()
File ".\scripts\interwiki.py", line 2338, in queryStep
subj.finish()
File ".\scripts\interwiki.py", line 1785, in finish
if self.replaceLinks(page, new):
File ".\scripts\interwiki.py", line 1945, in replaceLinks
if not botMayEdit(page):
File ".\scripts\interwiki.py", line 2432, in botMayEdit
templates = page.templatesWithParams()
File "C:\Work\pywikipedia\pywikibot\tools\__init__.py", line 1259, in wrapper
return obj(*__args, **__kw)
File "C:\Work\pywikipedia\pywikibot\page.py", line 2034, in templatesWithParam
s
defaultNamespace=10)
File "C:\Work\pywikipedia\pywikibot\page.py", line 4681, in __init__
self._text = url2unicode(self._text, encodings=encodings)
File "C:\Work\pywikipedia\pywikibot\tools\__init__.py", line 1259, in wrapper
return obj(*__args, **__kw)
File "C:\Work\pywikipedia\pywikibot\page.py", line 5282, in url2unicode
raise firstException
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfb in position 12: invalid
start byte
<type 'exceptions.UnicodeDecodeError'>
CRITICAL: Closing network session.
```
In log file with -debug:
```
2015-09-01 22:32:47 api.py, 1961 in submit: DEBUG API response received from wiktionary:fi:
{"edit":{"result":"Success","pageid":7993,"title":"ao\u00fbt","contentmodel":"wikitext","oldrevid":2562419,"newrevid":2652380,"newtimestamp":"2015-09-01T21:32:46Z"}}
2015-09-01 22:32:47 site.py, 4555 in editpage: DEBUG editpage response: {u'edit': {u'pageid': 7993, u'title': u'ao\xfbt', u'newtimestamp': u'2015-09-01T21:32:46Z', u'contentmodel': u'wikitext', u'result': u'Success', u'oldrevid': 2562419, u'newrevid': 2652380}}
2015-09-01 22:32:47 page.py, 1108 in _save: INFO Page [[fi:août]] saved
2015-09-01 22:32:47 __init__.py, 678 in stopme: DEBUG stopme() called
2015-09-01 22:32:47 __init__.py, 711 in stopme: VERBOSE Dropped throttle(s).
2015-09-01 22:32:47 http.py, 87 in _flush: CRITICAL Closing network session.
2015-09-01 22:32:47 http.py, 91 in _flush: VERBOSE Network session closed.
```
0xfb seems to be the 'û' character in 'août'. This also seems to be a recent issue as I didn't experience any similar problems with accentuated latin characters in page titles before.
>pwb.py version
```
Pywikibot: [https] r-pywikibot-core.git (e00b43f, g6330, 2015/09/01, 14:40:16, o
k)
Release version: 2.0b3
requests version: 2.7.0
cacerts: C:\Program Files\Python27\lib\site-packages\requests\cacert.pem
certificate test: ok
Python: 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)]
PYWIKIBOT2_DIR: Not set
PYWIKIBOT2_DIR_PWB: C:\Work\pywikipedia
PYWIKIBOT2_NO_USER_CONFIG: Not set
```