How to process file opening?

2006-03-07
2012-11-14
  • Is there a notification code for a file opening?
    The idea is to autodetect file character table (such as cp866, koi8-r) and change it to cp1251 when the file is already opened but before it is shown.