• 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
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic