Bug fix and GBK support

1. GBK support
2. Show invalid operation details in non-p2dv mode
3. Bug fix `os.sleep` to `time.sleep`