karlcow/ymir — Issue #4: UTF-8 only - convert if not in utf-8
Author: karlcow
Created: 2012-01-29 14:42:02+00:00
State: open

There should be a way if the script identifies that a file is not in utf-8 to get its encoding, convert it to utf-8, check if it served with the appropriate utf-8 encoding.

The script is for the future but could be practical to process old files.

if meta charset doesn't exist
add
if meta charset exists
is it utf-8?
yes. exit
is it another CHARSET?
Tell it
(OPTIONS)
convert to utf-8
replace by if doctype html5
replace by the appropriate meta for the doctype