Closed GhbSmwc closed 4 years ago
Hi @GhbSmwc - well there's not much that I can help. For one, I don't have a windows machine to test special characters and also not enough free time to focus on this project. I'm not actively maintaining this project anymore. My knowledge may not be up to date but to what I know Archive.org does not have a proper REST APIs and submitting URLs in this way is also very error prone. But if you want to change the code, feel free to do so and if you think it's useful to share, you are always welcome to submit a merge request.
Still using the “fixed” version you gave me.
Oddly, I've tested saving these URLs and somehow the command prompt is treating them differently despite both being on the same code page:
The first URL saved successfully, but the second does not work AT ALL[1] , messing around with NP++'s encoding doesn't work either. And yes, I tried manuel saving and it worked. I also tried with and without the
chcp 65001
, still fails.I've noticed that
chcp 65001
makes a huge difference on how the command prompt handles the characters. I did “pseudo-auto-saving” by making a batch file using thestart
command, making it open a default browser (if multiple URLs, opens in a new tab) that would save the page as opposed to merely using a script that merely read the HTTP status:This alone (without the
chcp
) takes me to a different URL (invalid by the way):Raw form when testing with the
chcp
command:whereas I have this in the batch file instead:
Always works, even URLs that failed (see at [1]).