Mattschillinger / wikiteam

Automatically exported from code.google.com/p/wikiteam
0 stars 0 forks source link

Running dumpgenerator on pages with '...' in the title seems to break it #112

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. source wiki - linux - page title contains ...
2. destination wiki - windows - running dumpgenerator.py
3. attempt to extract wiki via api or index and dumpgenerator.py crashes 

What is the expected output? What do you see instead?

dumpgenerator.py should complete.  

Instead I get:

Traceback (most recent call last):
  File "dumpgenerator.py", line 1562, in <module>
    main()
  File "dumpgenerator.py", line 1554, in main
    createNewDump(config=config, other=other)
  File "dumpgenerator.py", line 1260, in createNewDump
    generateXMLDump(config=config, titles=titles, session=other['session'])
  File "dumpgenerator.py", line 579, in generateXMLDump
    xml = getXMLPage(config=config, title=title, session=session)
  File "dumpgenerator.py", line 510, in getXMLPage
    print '    %s, 1 edit' % (title)
  File "C:\Python27\lib\encodings\cp850.py", line 12, in encode
    return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u2026' in position
 45: character maps to <undefined>

What version of the product are you using? On what operating system?

Source wiki is RHEL Linux Wikimedia 1.19.2
Destination is Windows Server 2008 Wikimedia 1.22.2

Please provide any additional information below.

Original issue reported on code.google.com by phill...@gmail.com on 19 Aug 2014 at 2:18