• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar file and unic code convertion

 
MohanRaj Ponnambalam
Greenhorn
Posts: 3
Java PHP Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 972
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
Java PHP Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

//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
Posts: 48374
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
Java PHP Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh,Thank you sir,but how can i convert my string to that int form...any method there???
 
Campbell Ritchie
Sheriff
Posts: 48374
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That doesn’t convert a String to an int. It displays an int as a String.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic