manishrathi has asked for the
wisdom of the Perl Monks concerning the following question:
I was scripting using Perl and I came across encoding issue.
Now I am confused with this encoding issue, which is not exactly a Perl issue. I tried asking this at different blogs, but of not much help.
I am putting my confusion here, please let me know of correct idea. Please dont point to links as they are more confusing. I did a lot of research, but none of them explains it properly.
1) If I want use a different encoding, this new encoding will have assigned different bits to each character than UTF-8 encoding. How can I apply this new encoding with input device (keyboard) as keyboard is already typing according to UTF-8 ? If my understanding is not wrong, this problem is not faced by end users who are reading this page with different encoding than UTF-8. Because meta tag of HTML header will inform the client browser about encoding to use and that encoding will automatically be invoked by client browser. But for person who wants to type in this different encoding, how can he do that ?
2) Secondly, if I want to type Hindi characters using different character encoding, how can I do that if I don't have Hindi keyboard ? Do I need to type in Hex code pertaining to each character ?