Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Apr 24, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 19 Aug 2014 at 2:18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant