Skip to content

01.000.001 - code.txt reader: UTF-16 and non-breaking space

Choose a tag to compare

@7tg 7tg released this 21 Oct 13:43

Install stopped at Can't set Software\Wow6432Node\KONAMI\PES2013\code (not printable ASCII) when the player's code.txt had a non-ASCII byte in it (NBSP, UTF-16 encoding, or similar). The reader now:

  • takes UTF-16 LE/BE with a byte order mark (Notepad's old "Unicode" encoding)
  • trims a non-breaking space (Latin-1 or UTF-8) and a zero-width space at the edges
  • shows a message that names the file when a character still can't be used, instead of the registry's untranslated Can't set … toast

See #1.