Quote:
Originally Posted by KIE18
Apparently I'm doing something wrong. I give up trying to change it.
|
I'm sorry I couldn't be more help. As somebody with more experience than you dealing with this kind of issue let me reassure you that it is a frustrating issue to try to fix. I didn't test that webpage that I linked so I have no idea if you're doing something wrong or if the tool is simply broken.
If you are willing to keep trying then another avenue to try would be to revisit the command I shared previously, and repost here for the sake of being explicit:
Code:
read -r -d '' bash_script <<'EOF'
if [[ $(chardetect "{}" --minimal) == "Windows-1252" ]] ; then
iconv -f cp1252 -t utf-8 "{}" -o "{}.utf8"
mv "{}.utf8" "{}"
fi
EOF
find . -type f -execdir bash -c "$bash_script" ';'
Although you are on Windows, these days I understand that Windows has something called WSL, the Windows Subsystem for Linux. I am not familiar with how to install or use WSL but once you have it working then as far as I understand it should allow you to use Bash and more or less run that code I shared exactly as it's written. (You would first need to do step 1 – explode/unzip your book – and make sure that you are inside the directory you unzipped your book into.) In Bash you can see your current directory by typing
pwd (and then Enter), the contents of the current directory with
ls (and then Enter – note that you need to use options to see hidden files), instructions for any given command with man command e.g.
man ls, and you can change your directory with cd subdirectory_name e.g. if you explode the book into a directory called My Book then you would type
cd "My Book" (paths and filenames with spaces should almost always be surrounded by quote marks in Bash).
I wish I knew of some simple GUI tool to help with this but my searching did not turn up anything that looked more useful than the webpage I linked previously.