aspose file tools*
The moose likes Beginning Java and the fly likes jar file and unic code convertion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jar file and unic code convertion" Watch "jar file and unic code convertion" New topic
Author

jar file and unic code convertion

MohanRaj Ponnambalam
Greenhorn

Joined: Sep 08, 2012
Posts: 3

my java program is read input of tamil string from txt file and write to doc file.it works in IDE netbeans .but when i convert it in to jar file using netbeans the output file text not match with unicode font.anybody help me please?
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 867
    
    5
Are you sure you specify explicitly the encoding at every place there is a (byte -> char) or (byte <- char) conversion or do you rely on defaults?
MohanRaj Ponnambalam
Greenhorn

Joined: Sep 08, 2012
Posts: 3


//This is my program which is read Tamil unicode lines form mohan.doc file and save it into given name . All is good when i execute in IDE Netbeans 7.0.1. when i convert in to .jar file using netbeans ,the jar file is working properly but the font and unicode didnot match....i opened in UTF-8 unicode.please help me to solve this problem.thank you friends.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38334
    
  23
Welcome to the Ranch
Please always use the code button, which I have used on your code, and you can see how much better it looks

How do you know the text is not being read correctly? Try printing the individual chars as ints, like thisFor Tamil Scripts, you should get values between 0x0b80 and 0x0bff. If those values come out all right, it might be the terminal which cannot display the letters.
MohanRaj Ponnambalam
Greenhorn

Joined: Sep 08, 2012
Posts: 3

Oh,Thank you sir,but how can i convert my string to that int form...any method there???
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38334
    
  23
That doesn’t convert a String to an int. It displays an int as a String.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jar file and unic code convertion