开发者

encountering a square or null or ? mark in retrieving utf-8 characters from mysql database in java

There is no problem when I try to insert this symbol "ñÑ" in the mysql database. However, when I try to retrieve the same data the symbol or character that was selected by the quer开发者_如何学JAVAy would appear as null value or something like a ? or a square.

Please help me with these I have been troubled many weeks by these problems. I just cannot understand anymore. I have written the code in java.


The "�" is the replacement character, used when something processing characters can't display or otherwise handle a character. A box is sometimes used for the same purpose, or indicates that the font being used doesn't have a glyph for some character.

To resolve this, check that the character sets being used for the various components, such as the column and connection, are correct.

See also: "Setting the default Java character encoding?"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜