• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Chinese language support to web application

 
RatiKanta pal
Ranch Hand
Posts: 88
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heloo everyone.I am trying to covert my web application to chinese..I have already changed my properties file format to UTF-8.But when i try to encode it.Its showing java.lang.Exception file cannot be read ..Any suggession how to do it what may be the problem.. Help me out..
 
Tim Moores
Bartender
Posts: 2839
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What Exception is that, exactly? Is the account running the app allowed access to the file? Can it read other files?
 
RatiKanta pal
Ranch Hand
Posts: 88
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
through command line when i try to convert the property file to asscii than its throw exception file can not be read ..

my c:\lable.txt contains==你是如何


and i am giving command c:\>native2ascii -encoding utf8 c:\label.txt c:\output.txt


than its showing java.lang.Exception label.txt could not be read
 
Tim Moores
Bartender
Posts: 2839
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What Exception is that, exactly?

Post the stack trace.

And leave out the "C:\" from the file names.
 
RatiKanta pal
Ranch Hand
Posts: 88
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not showing much in command line..Giving just one line exception.

Hey i got another solution.. http://konieczny.be/unicode.html ..this web site helps me to convert utf-8 character to html entries..I am simply putting that text in properties file and its showing me my desired text i.e chinese ..

Thanks for your replay..do you prefer any another solution?
 
Tim Moores
Bartender
Posts: 2839
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, if this was my problem, I would want to figure out what the problem was and address that instead of looking for workarounds. Using HTML entities restricts you to use this in a context where those can be interpreted; it is thus inferior to an approach that uses properly Unicode-encoded properties files.
 
RatiKanta pal
Ranch Hand
Posts: 88
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
c:\>native2ascii -encoding utf8 label.txt output.txt

java.lang,Exception:label.txt could not be read

c:\>


This much was coming..

and my label.txt contains = 你是如何.

How to stack trace from command line And I have no clue how to resolve this issue..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic