-3

I tried to save these special characters:

© ™ ® ± ≠ ≤ ≥ ≅ ∞ µ α β Ω Σ Φ φ <> ° & %

into a MySQL databuse using a Java application, but its not working.

While implementing the JDBC driver into my application, I made sure to do it this way:

 jdbc:mysql://ip:3306/db?useUnicode=true&amp;characterEncode=UTF-8

but it's still not working. Instead, most of the characters are just transformed into question marks (?) like shown in the screenshot below:

My Screenshot

Viktor
  • 2,623
  • 3
  • 19
  • 28

2 Answers2

2

Change the URL to jdbc:mysql://ip:3306/db?useUnicode=true&characterEncoding=UTF-8

Error:

Use characterEncoding instead of characterEncode

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
user1960808
  • 112
  • 4
-4

Try this

String characters = "© ™ ® ± ≠ ≤ ≥ ≅  something";
String noCharacters = characters.trim();
David Kathoh
  • 191
  • 1
  • 9