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

Encoding Problems

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hello ranch guy's,
I've got a big encoding problems and this is cost me a lot of times for nothing.

Here my problems :

I've got an application that create a report. The report has some french accent like : é
When I test the file in eclipse the repor (witch is an .txt file ) t is encoded in utf-8.
I make an executable jar with maven2 and after running the program with java -jar the report is encoded in us-ascii.

Im on opensuse and the command file -i is giving me the information.

So i already set the default charset to the JVM with several options.
When the code execute I
and the result is UTF-8.
But the file is encoded in text plain us-ascii :

$file-i report.txt
report.txt: text/plain; charset=us-ascii

The same file with eclipse is
$file-i report.txt
report.txt: text/plain; charset=utf-8


Well .. I dont know what to do to make my file to be an utf-8 outside eclipse.

Maven assembly is with some plugins:



an the properties of the project are :



Well, if someone can help me on that, It will be very great because i'm really stuck here.

Best regards,

Chris.



 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please do not post the same question more than once.
 
    Bookmark Topic Watch Topic
  • New Topic