• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Java Encoding Displaying issues

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

I am invoking a jar from Linux command prompt with following parameters:

./Client.jar "1" "http://abc.com" "Equinix vous informe d.un nouvel incident réseau à SV. Merci de vérifier vos courriels ou notre portail client pour de plus amples informations."

Now, when I print args[2], it shows this
Equinix vous informe d.un nouvel incident r�seau � SV. Merci de v�rifier vos courriels ou notre portail client pour de plus amples informations.

These are latin(French) characters.

How can I make them display exactly the same way they are passed?

P.S.: I posted detailed msg here..
Java Charset UTF-8, ISO-8859-1 Encoding issue
..but then I figured that it could be more of Java-in general question and not web-services related...so I tried to trim down issue in this thread.


Appreciate any assistance.

Thanks
Chintan.

 
Chintan B Shah
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi folks,

Problem was with the encoding of my terminal client(Putty).

Just for your info, encoding can be changed under "Change Settings-->Windows-->Translation" in Putty.

My co-worker pointed it out .

Thanks
Chintan.
 
Are you okay? You look a little big. Maybe this tiny ad will help:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic