Java : Setting Locale System Properties

System PropertyDescription
user.language
Two-letter language name code based on ISO 639.
user.region
Two-letter region name code based on ISO 3166.
file.encoding
Default character-encoding name based on the IANA Charset MIB.


ex.
-Duser.country=US -Duser.language=en

Ref: 1.

ดู locale ได้จาก Ref

If you have ever tried to open an excel document and received the error that says "There was a problem sending the command to the program", you can fix it by doing the following:


  • Open Excel 2007
  • Open the Menu in the top left
  • Click the "Excel Options" button 
  • Click the advanced tab on the left of the options screen
  • Under the general options uncheck the box "Ignore other application that use Dynamic Data Exchange (DDE)"   
top