work well.
Do not use setq to bind a value to keyboard-coding-system. Use the function "set-keyboard-coding-system". This comment also applies to display-coding-system, file-coding-system, etc.