java - Character set on Solaris -


i have simple java program prints out special characters

system.out.println("á"); system.out.println("é"); system.out.println("í"); system.out.println("ó"); system.out.println("ú"); 

when run code on windows 7 machine, prints console correct characters. deploy soloris machine , run code.it looks á ú í ó é

i have tried running jar commands java -dfile.encoding=utf-8 -dsun.jnu.encoding=utf-8

how can special characters print out in solaris?

you need utf-8 locale installed , configured terminal. i'm not familiar setting on solaris, these links might started:


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -