-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,417
  • 3
  • 17
  • 26

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
  • 90,369
  • 161
  • 124
  • 175
user1960808
  • 112
  • 4
-4

Try this

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