|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi -
i wanted to display hindi characters in a java 2 program. normally i use edit command in dos to make my programs. iam using windows xp. i installed the regional support for indic languages but could not right in the dos editor in unicode. so i wrote the program in notepad and saved it as Unicode encoding scheme. later i used the following command to compile the program: javac -encoding UTF-16 txtHindi.java java txtHindi however the output showed ??? it showed the same output when i saved the file in notepad as UTF-8 encoding. can anyone please help as to how can i display hindi/unicode charcaters in a java program? and also whether is it necessary to use swing or something else to be able to display it correctly? regards. siddhartha |
|
#2
|
||||
|
||||
|
I'm curious, what does your Java code look like?
Does the DOS command line support unicode characters? I know in HTML, when I use a special character that the font does not support it, it replaces it with a question mark. |
|
#3
|
|||
|
|||
|
I think the dos command line does not. so it was showing the questionmarks. the code was ordinary - i was just trying to display hindi text using System.out.println(). the argument was in hindi and i saved the file in notepad using UTF-8 and Unicode encoding schemes respectively and tried both of them out.
later i learnt dos commmand line did not support it. instead i used swing which allows labels etc to display unicode characters. could you tell me if i can use unicode characters in RDF and HTML? i think it should be possible in HTML because there are pages in native languages. could you tell me about RDF pages? regards. siddharth Quote:
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > displaying unicode characters |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|