Reputation: 363
I am using javafx to build a mgmt application. in the UI I have Textfileds to insert the user data (non english characters) however when I am using the getText method, for input like "מזדה", all I am getting is "????" instead of the input itself.
Anyone has an idea how can this be fixed? I am using jdk 1.8.
Searching for similar queries didnt came up with any solution.
Upvotes: 0
Views: 972
Reputation: 363
Ok, so after some additional digging I have found that the issue was that I didnt set the character encoding when registering the jdbc driver.
final String DB_URL = "jdbc:mysql://127.0.0.1/amircar**?characterEncoding=utf8";**
hope that it will help someone
Upvotes: 1