NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
December 13, 2017, 08:20:08 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
You cannot always have happiness but you can always give happiness. ..."Mother Teresa(1910-1997, Roman Catholic Missionary, 1979 Nobel Peace Prize)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: native2ascii  (Read 4891 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
ahmedelshfie
Ahmed
Hero Member
*
Offline Offline

Posts: 954



«
Embed this message
on: July 03, 2010, 10:15:22 am » posted from:Uberaba,Minas Gerais,Brazil

I find file native2ascii in my system under program files/java/jdk6/bin
I'm not sure if this is file that you mean prof or no but i think problem is in special characters like you said me
I will insert images for my system java in my PC and i mark file by red line for you check if right or wrong and need
Download and I'm search about Utf-8 in java but not found.



* native2ascii.gif (302.72 KB, 1280x960 - viewed 392 times.)
« Last Edit: July 03, 2010, 10:29:03 am by ahmedelshfie » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #1 on: July 03, 2010, 11:43:53 am » posted from:Taipei,T\'ai-pei,Taiwan

I can type in αβγ directly with copy and paste to EJS as property value.
And the compiled file also work fine.

For your case, it might due to character code which is not implemented in your local language code.
It might be solved by using  native2ascii  to conver your local language code to utf-8

For me: the language code is big5
I type in αβγ into test.txt and I use the following to convert it into utf-8 code:

native2ascii -encoding big5 test.txt test_utf8.txt

And the result in test_utf8.txt is
Code:
\u03b1\u03b2\u03b3

And I put the above code into property field for label, it also shown as "αβγ" in EJS working window.
However, it is not working with compiled simulation.

I think the problem is related to local language issue (with java). You need to ask help from local java programmer in your country.
Logged
ahmedelshfie
Ahmed
Hero Member
*
Offline Offline

Posts: 954



«
Embed this message
Reply #2 on: July 08, 2010, 01:42:33 am » posted from:SAO PAULO,SAO PAULO,BRAZIL

Problem is solved by my self Cheesy
I download native2ascii and replace in my java system
After restor PC and test again typing symbols i test typing by way Greek symbol is phi (φ)
And work very well now I'm typing all symbols without any problem.
Thanks for help
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #3 on: July 08, 2010, 07:32:45 am » posted from:Taipei,T\'ai-pei,Taiwan

t is good to know that the above method work.
Logged
Pages: [1]   Go Up
  Print  
You cannot always have happiness but you can always give happiness. ..."Mother Teresa(1910-1997, Roman Catholic Missionary, 1979 Nobel Peace Prize)"
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.062 seconds with 22 queries.since 2011/06/15