maaaaz / webscreenshot

A simple script to screenshot a list of websites
GNU Lesser General Public License v3.0
654 stars 162 forks source link

Encoding issues #1

Closed arnaudsoullie closed 10 years ago

arnaudsoullie commented 10 years ago

Apparently the script doesn't work unless the input file is encoded in "UTF-8 without BOM".

maaaaz commented 10 years ago

Corrected in the latest version. Line 206:

try:
  lines = [l.decode('utf-8').lstrip().rstrip().strip() for l in fd_input.readlines()]
except UnicodeDecodeError as e:
  logger_gen.error('Your input file is not UTF-8 encoded, please encode it before using this script')