• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jar file and unic code convertion

 
Greenhorn
Posts: 3
PHP Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Rancher
Posts: 1044
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
PHP Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 79239
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
PHP Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 79239
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That doesn’t convert a String to an int. It displays an int as a String.
 
reply
    Bookmark Topic Watch Topic
  • New Topic