• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unicode  RSS feed

 
Jeethu Jerry
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we need any package to generate Unicode for multiple languages? I get the Unicode only when the input is in English.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to give us much more detail about what you're doing, what the result is, and how that differs from what you expected. For example, what do you mean by "generate" and what is "the Unicode"?

Unicode is about character encodings, not languages, so I suspect that by "English" you actually mean "text that consists of ASCII only".
 
Jeethu Jerry
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to enter a text of any language and the corresponding Unicode for that language must be displayed. But as of now I could enter only English text.So my question is that should I include any package to get the Unicode of other languages? Or is there any other solution to my question?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's still not clear to me what you're doing. Please give sample input and output, and also show the code you're using for that (minus any GUI parts).
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeethu Jerry wrote:I have to enter a text of any language and the corresponding Unicode for that language must be displayed. But as of now I could enter only English text.So my question is that should I include any package to get the Unicode of other languages? Or is there any other solution to my question?

Jeethu,

We have no idea what you're trying to do - nor indeed, how you're trying to do it - since you haven't told us.

Unicode is not some magic wand that allows you to see "any language", it is an encoding mechanism (specifically, for characters) that allows most languages to be displayed. If you try and display a Unicode character on a device (or console) that is not set up for it, it will probably display gibberish - quite possibly, something like this: 

So: back up and explain your problem.

Winston
 
Paul Clapham
Sheriff
Posts: 22835
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's try something else. Here's a text in French:

Je m'appelle Paul.


Now, what's the "corresponding Unicode" which you want to see for that text?

 
Jeethu Jerry
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to display the Unicode of that text.My question is to have a program that generates the Unicode of any language that will be entered by the user.but as of now I can enter only the English text and display the corresponding output of that only. To enter the text of Hindi or any such language should i include any package that will encode it?
 
Paul Clapham
Sheriff
Posts: 22835
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That text IS Unicode already. So you're going to have to explain what "the Unicode of that text" means.

And while you're doing that, you should explain why you think English is special in some way. Basically you have a complete misunderstanding of what Unicode is, but I can't even guess what you think instead.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm also still confused, so I'll once more ask this:
Ulf Dittmer wrote:Please give sample inputs and outputs, and also show the code you're using for that (minus any GUI parts).
 
Scott Shipp
Ranch Hand
Posts: 224
12
Eclipse IDE IntelliJ IDE Java Scala Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe some information in this article will be helpful: BalusC Unicode Tutorial. It helped me recently to figure out that I needed to set a particular encoding setting in Eclipse otherwise my dev environment would never show unicode for particular things, which was a very frustrating experience!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!