I'm trying to write a little script that uses deluge-console, and I'm bumping my head against the desk atm trying to solve this one issue that I'm having.
Well, let's get to it.
That script, which is written in NodeJS, executes a pretty simple deluged command:
Code: Select all
deluge-console "add -p 'E:\Anime\אנימות העונה\Fate\' 'https://crunchyroll.com/as_if/download/942631.torrent'"
I have, just in case, tried to change the active code page (CHCP 65001), play around with some registry values, and obviously the inserted input is being encoded to UTF-8 as well:Error parsing command: 'ascii' codec can't encode characters in position 15-20: ordinal not in range(128)
Code: Select all
with (Deluge.add({
saveLocation: utf8.encode('E:\\Anime\\אנימות העונה\\Fate\\'),
torrentSrc: 'https://crunchyroll.com/as_if/download/942631.torrent'
})) {
Edit:
Oh, and by the way, I couldn't get to test the script on a Unix-like OS, which is why I opened this thread specifically on this board.
This doesn't seem to be too common of an issue, and I suspect that it might have to do with the regular Windows oddities.