Q726kbXuN / nytxw_puz

Turn NY Times crosswords into Across Lite files
The Unlicense
41 stars 10 forks source link

Use errors='namereplace', not string, when encoding #5

Closed edsantiago closed 2 years ago

edsantiago commented 2 years ago

There aren't many options when source is UTF-8 and AcrossLite is iso-8859-1. namereplace will at least show '\N{EM DASH}' for '—', and so forth; I find that friendlier than '—' or '\u2014' or '?'.

Signed-off-by: Ed Santiago ed@edsantiago.com