SkypLabs / blog.skyplabs.net

Personal blog about IT, electronics, InfoSec, hacking, bug hunting... (No more maintained - New repository available at https://github.com/SkypLabs/personal-blog)

Home Page:https://blog.skyplabs.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to use `htmlproofer` inside a Docker container

SkypLabs opened this issue · comments

When I run htmlproofer inside a Docker container, I get the following error:

Configuration file: /usr/src/app/_config.yml
            Source: /usr/src/app
       Destination: /usr/src/app/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
                    done in 38.202 seconds.
 Auto-regeneration: disabled. Use --watch to enable.
Running ["LinkCheck", "ImageCheck", "FaviconCheck", "ScriptCheck"] on ["./_site"] on *.html... 


htmlproofer 3.7.6 | Error:  invalid byte sequence in US-ASCII

Need to set LC_ALL=C.UTF-8 or Need to set LC_ALL=en_US.UTF-8 or similar

Thanks @jayvdb!

Actually, I had tried with different values of LC_ALL but as far as I remember, it didn't work. However, I just tried again with LC_ALL=C.UTF-8 and now it works like a charm 👍