Shobhit Ranjan
Shobhit Ranjan

Reputation: 83

python getpass module is not taking German characters as input

I am trying to enter password having German characters using python getpass module on Windows 7. Python version is 2.7.8

The same is working with Chinese, Japanese and Korean characters when I set the corresponding locale.

I have the same thing with python 2.3.5 and same issue persists.

Please let me know if I am doing something wrong?

Upvotes: 1

Views: 332

Answers (1)

Shobhit Ranjan
Shobhit Ranjan

Reputation: 83

I was entering the German character (ö) by typing following : alt + 0246. But typing the same character directly from the German keyboard (semi-colon ';' on American keyboard) is working fine.

However, still I am confused as to what is the difference between above two. Maybe alt code characters are in a different encoding than what is given by sys.stdin.encoding!!!

Upvotes: 0

Related Questions