Ready to Program Java IDE and Unicode?
| Author |
Message |
Aziz

|
Posted: Mon Dec 11, 2006 9:55 am Post subject: (No subject) |
|
|
| Just not rtp, for the love of god |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
FileFantasy
|
Posted: Mon Dec 11, 2006 6:49 pm Post subject: (No subject) |
|
|
Haha, yea, trying to get rid of RTP, and I think I'll suggest JCreator LE to the teacher rather than NetBeans, it looks more complicated although I think it has more features than JCreator LE.
Never tried Eclipse. |
|
|
|
|
 |
Clayton

|
Posted: Mon Dec 11, 2006 9:23 pm Post subject: (No subject) |
|
|
| Why exactly do schools insist on using RTP? I myself have never used it, but I've heard many a horror story about it. Is it something to do with Holtsoft tightening their stranglehold on Ontario's Computer Science Curriculum? |
|
|
|
|
 |
Aziz

|
Posted: Mon Dec 11, 2006 11:14 pm Post subject: (No subject) |
|
|
| First off, because Holtsoft produces Turing. So they think they're getting a wonderful product. Holtsoft also provides many books that go along with RTP. Also, it's a "learning" program. And it costs money. I think a freeware program is "not good enough" for schools, they need something "professional". |
|
|
|
|
 |
FileFantasy
|
Posted: Mon Dec 11, 2006 11:15 pm Post subject: (No subject) |
|
|
No idea. But this year's tech teacher agrees that we shouldn't use it, so it's all good.
I still don't know how to get CJK characters to display though, haha... |
|
|
|
|
 |
Aziz

|
Posted: Tue Dec 12, 2006 8:41 am Post subject: (No subject) |
|
|
That *was* the topic eh? Well, what did that google search result in? Anything useful? |
|
|
|
|
 |
FileFantasy
|
Posted: Tue Dec 12, 2006 7:06 pm Post subject: (No subject) |
|
|
I did try to google it, but nothing gave me what I want, which is an explanation of why the code in my first post returns "?", and then an example of how it should be done properly (with source code).
Like, I want a "hello world" example, but in CJK characters. |
|
|
|
|
 |
gsquare567
|
Posted: Tue Dec 12, 2006 9:31 pm Post subject: (No subject) |
|
|
i say rebel against ur school. hack into the server, and change it to normal java on every computer that wudn't b as hard as trying to get help on it lol. |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
ericfourfour
|
Posted: Tue Dec 12, 2006 10:14 pm Post subject: (No subject) |
|
|
| Well, I'd hate to break it to you gsquare567 but the Java is normal at school. It just uses an out of date compiler, and a questionable IDE. |
|
|
|
|
 |
Aziz

|
|
|
|
 |
wtd
|
Posted: Wed Dec 13, 2006 11:07 am Post subject: (No subject) |
|
|
| If I had to guess, I'd say the acronym stands for Chinese, Japanese and Korean. |
|
|
|
|
 |
FileFantasy
|
Posted: Wed Dec 13, 2006 4:59 pm Post subject: (No subject) |
|
|
Aziz,
I have, but it's so confusing that I have no idea which page to go to in order to find a simple "hello world" example of what I want, if there even is one.
---------------------------
wtd,
It indeed does.
Like, what I'm trying to do is display, for example, the unicode 4e00 on-screen, right?
That character should look like a dash ("-"), except a bit longer.
However, when I do System.out.print ("\u4e00"), a question mark ("?") is displayed instead. This go for any unicode that is in the 4E00-9FA5 range. (These are Unicode CJK Unified Ideographs) |
|
|
|
|
 |
OneOffDriveByPoster
|
Posted: Fri Dec 15, 2006 10:51 am Post subject: (No subject) |
|
|
FileFantasy wrote: However, when I do System.out.print ("\u4e00"), a question mark ("?") is displayed instead. This go for any unicode that is in the 4E00-9FA5 range. (These are Unicode CJK Unified Ideographs) The question is, what font are you using? |
|
|
|
|
 |
FileFantasy
|
Posted: Fri Dec 15, 2006 10:23 pm Post subject: (No subject) |
|
|
| Um, I don't specify. I just did what posted code on the first page, so I guess it's using default font, whatever that is. |
|
|
|
|
 |
FileFantasy
|
Posted: Sat Dec 16, 2006 7:33 pm Post subject: (No subject) |
|
|
Ah, ok, I decided to look into the font issue, and I found out that if I use swing, and set font of a jtextfield to Simsun or PMingLiU, and then set text to "\u4e00", it displays it properly!
Issue solved, for now. Thanks everyone!
------------------
Ugh, now I have a new question...
Is it possible to make user input the hex, then display the unicode for that hex?
Ex. input: 4e00 output: (the chinese character for "1")
The trouble I have is when I type this in my source code:
Code:
output.setText ("\u"+input.getText());
It says that I have an "invalid unicode escape character". |
|
|
|
|
 |
|
|