Skip to content

char.mangled

A file read as Latin-1 or cp1252 and written back as UTF-8: the accented letter that went in comes out as two, and every reader after copies the pair forward. Usually a paste out of a terminal, an editor with the wrong default, or a script that opened the file without naming an encoding.

A run of bytes that were UTF-8 read through another codec, so the field carries characters nobody chose. Retype the field; an example of the mangling belongs in the design section, which is prose this rule does not read.

Two or more doors are open and which one is right is a judgement about the work.

  • roadkeep restate … --symptom … --typo — where the symptom is what arrived wrong
  • roadkeep amend … --why … — where the why is