python実行時エラー UnicodeEncodeError: 'cp932' codec can't encode character ~ illegal multibyte sequence Python

python実行時に以下のエラー

UnicodeEncodeError: cp932 codec can t encode character ~ illegal multibyte sequence