mysql - java ResultSetMetaData gets Chinese alias garbled
天蓬老师
天蓬老师 2017-05-17 10:08:49
0
1
592
  1. code show as below:

2. If the alias is Chinese resultSetMetaData.getColumnName(i 1), this code will get garbled data.

3. The Chinese in the result set is normal.
4.mysql character settings are as follows

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
阿神

Add encoding parameters after the JDBC url

?useUnicode=true&characterEncoding=UTF-8
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template