-
Notifications
You must be signed in to change notification settings - Fork 14
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
Cast XML bytes to str to avoid encoding issues #31
Conversation
The unit tests are still broken in the |
Is this the fails mentioned at #7 and are these fails what's blocking progress on Wikiteam3? |
Signed-off-by: Elsie Hupp <[email protected]>
Among other things, yes. I'm also just super not on top of things. 😬 It doesn't help that I don't work in Python very much, so I'm extremely rusty. I had been doing some work in the Anyway I just pushed a commit in this Pull Request that seems to fix the encoding issues, and I have repeatedly tested it using the following command: dumpgenerator http://wiki.othing.xyz --xml It works on my computer with elementary OS; could either of you—@vgambier or @robkam—try testing it on Windows? If it works on Windows at this point, then we can safely merge it! As before, to check out this commit, you can do: git pull && git checkout fix-bytes-regex |
Hi @yzqzss, @Dss0 & @RedSparr0w—could you give this Pull Request a try? Thanks! (Also apologies that I have been extremely slow to respond here...) |
By the way, I have no idea why the Pre-Commit CI is failing. It looks like it's a configuration issue. I will have to dig into it further. |
I'm sorry, I don't have access to a Windows machine. Thank you for the response :) |
This PR seems to be working well for me on the following: dumpgenerator --xml dumpgenerator --xml --curonly |
Not sure if it's just this PR or not, but if I'm not using |
|
I failed to get |
Intended to fix #29
Haven't tested it yet, wanted to double-check with you first because of the comments discouraging messing with the encoding.
Another alternative would be to add something like
xml = xml.decode("utf-8)