Closed IanMayo closed 12 months ago
Can you do an in-place modification to that method call and see if it fixes it? Obviously there's no point me trying here on Mac.
Replace:
target_path.read_text()
with
target_path.read_text(encoding='utf8')
If that doesn't work, you can try the same but with encoding='cp1252'
.
First one fixed it :-D
Excellent, are you happy to do a PR?
The html source files contain rare use of
ï
and quite common use ofä
(94 times across 31 files)These get converted to DITA ok, and then to HTML satisfactorily.
But on MS-Windows the content-checker falls over when trying to load a
.dita
file containing one of these characters.The error occurs in the
target_path.read_text()
call incheck_files.py
Sadly, I don't-think the error is present on macos - I tried to do a content-check for
all files
, and it didn't fall over. So, I guess it's MS-Win only.Test data in #596