Euro (€) sign in Java applications

Hi,

In our Java application the Euro currency symbol (€) is not accepted, when entering data, the error says that the symbol is not supported by the current encoding. I assume that I have to choose another default encoding in IntelliJ (currently we use ISO-8859-1).

Does anybody know, which encoding I should use to fix this ?

Kind regards

Thomas Gülden
Munich, Germany

0
4 comments
Avatar
Permanently deleted user

Hello Thomas,

Thomas Gülden wrote:

default encoding in IntelliJ (currently we use ISO-8859-1).


ISO-8859-15.

But be careful! You have to specifiy the encoding also when compiling the
class.
It's better to encode the Euro-Sign.

Greetings

Marc Salm


0
Avatar
Permanently deleted user

Hi,

Thanks for the reply. The problem is not that the Euro symbol occurs somewhere in the code, but it is refused when entered by a user in a textfield and transmitted to the database. Therefore encoding the symbol is not an option in this case.

Kind regards

Thomas Gülden
Munich, Germany

0
Avatar
Permanently deleted user

Is the entering the problem or the storing in the database? What does
textField.getText() return?

Tom

0
Avatar
Permanently deleted user

Hi

The exception thrown occurs during the marshalling done by our ORB (JACORB) before sending the information to the server. Besides having IntelliJ configured to use 8859-15, the ORB still seems to work with 8859-1, so that presently I believe that the problem is related to the configuration of the ORB (haven't figured out where the problem is).

Thanks for help.

Thomas Gülden
Munich, Germany

0

Please sign in to leave a comment.