aspose file tools*
The moose likes JSP and the fly likes Chinese language support to web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Chinese language support to web application" Watch "Chinese language support to web application" New topic
Author

Chinese language support to web application

RatiKanta pal
Ranch Hand

Joined: Nov 13, 2011
Posts: 76

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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Nov 13, 2011
Posts: 76

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
Rancher

Joined: Sep 21, 2011
Posts: 2408
What Exception is that, exactly?

Post the stack trace.

And leave out the "C:\" from the file names.
RatiKanta pal
Ranch Hand

Joined: Nov 13, 2011
Posts: 76

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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Nov 13, 2011
Posts: 76

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..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Chinese language support to web application