Start a new topic
Answered

How to force the decimal separator by setting user.country java option?

Use case: you need to force the decimal separator (a dot or a comma, for example)





Best Answer

You can set the "user.country" Java property, through the "XDI_RUNTIME_VM_PROPERTIES" variable from the  initvariables.bat / initvariables.sh file on the runtime repository.

Two examples:
-Duser.country=US => .
-Duser.country=FR => ,

The value of the property has to be an ISO 3166 alpha-2 country code or UN M.49 numeric-3 area code.
You can find a full list of valid country and region codes in the IANA Language Subtag Registry (search for "Type: region").

1 Comment

Answer

You can set the "user.country" Java property, through the "XDI_RUNTIME_VM_PROPERTIES" variable from the  initvariables.bat / initvariables.sh file on the runtime repository.

Two examples:
-Duser.country=US => .
-Duser.country=FR => ,

The value of the property has to be an ISO 3166 alpha-2 country code or UN M.49 numeric-3 area code.
You can find a full list of valid country and region codes in the IANA Language Subtag Registry (search for "Type: region").

Login to post a comment