I have a prepared statement:
PreparedStatement st;
and at my code i try to use st.setString method.
st.setString(1, userName);
Value of userName is ?ak?a. setString methods changes '?ak?a' to '?ak?a'. It doesnt recognize UTF-8 characters. How can i solve this problem?
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…