deanhume / html-minifier

A simple command line tool to minify your HTML, Razor views & Web Forms views
http://deanhume.github.io/html-minifier/
MIT License
134 stars 86 forks source link

Problem with special characters #21

Closed vanderLo closed 8 years ago

vanderLo commented 8 years ago

It seems like it has a problem with a couple of German letters: ä, ü, ö, ß Moreover it can't handle special characters and symbols like: -, ©, etc.

Kind regards Joe

deanhume commented 8 years ago

Hi @vanderLo - what file encoding are you using on the file? I've tried this with multiple encodings and it seems to work.

Could you please attach a copy of the file that you are using so that I can test it?

vanderLo commented 8 years ago

Hi @deanhume - Been using UTF-8. Could this be related to the problem? Anyway, the problem was entirely solved by using the correct HTML Special Entity Codes for ©, ß, ä, ü, ö, § etc.