• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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: 1043
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: 76856
366
  • 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: 76856
366
  • 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.
 
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic