Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1057

Java PreparedStatement UTF-8 character problem

$
0
0

I have a prepared statement:

PreparedStatement st;

In my code, I try to use st.setString method.

st.setString(1, userName);

The value of userName is şakça. The setString method changes 'şakça' to '?akça'. It doesn't recognize UTF-8 characters. How can I solve this problem?


Viewing all articles
Browse latest Browse all 1057

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>