• Post Reply Bookmark Topic Watch Topic
  • New Topic

Understanding character encoding

 
nirjari patel
Ranch Hand
Posts: 386
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am confused with character encoding. I have following questions, please answer them in detail and provide links which explains basics. I did a lot of research, but none of them explains it properly.


1) When I use default character encoding, it is the UTF-8. Some bits are assigned to each character in this encoding. When I type with keyboard, whatever character is typed is automatically represented by bits assigned to it on the screen.
When I want to change input language in windows 7, I can change the language in Region and Language option. But encoding will still be UTF-8.
When I select a different language for input in windows 7, its working fine on notepad and wordpad (it displays characters of selected language). But when I use a different text editor like notepad++ or textpad, it just types ??? (Characters of selected language are not getting displayed). Why is that ?

2) 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 ?

3) 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 ?


Thanks
 
Kemal Sokolovic
Bartender
Posts: 825
5
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please BeForthrightWhenCrossPostingToOtherSites (link).
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
william broken,
Your post was moved to a new topic.
Split and created new topic in Android forum
 
nirjari patel
Ranch Hand
Posts: 386
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lot of times it takes a while to get reply on javaranch and sometimes replies are not being understood thats why my collegue posted it on different blog to get best explanation from somewhere, as this is really bothersome and need to be understood quickly.
Its not to tick off any one at javaranch.

Can someone please reply to the questions posted ?

Thanks
 
Henry Wong
author
Sheriff
Posts: 22541
109
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nirjari patel wrote:Lot of times it takes a while to get reply on javaranch and sometimes replies are not being understood thats why my collegue posted it on different blog to get best explanation from somewhere, as this is really bothersome and need to be understood quickly.
Its not to tick off any one at javaranch.

Can someone please reply to the questions posted ?


It is not about "ticking" other ranchers off... it is about showing some respect to your fellow ranchers for their efforts. This is why we require you to be forthright about the questions being posted on the other sites. And also like you to keep these topics in sync. For example, we still don't know what happened on the other topic.

Perhaps you can inform us of all the other sites? And summarize what the discussion has been so far on them? For all we know, this question has been answered already.

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!