开发者

ibatis database name with special characters

I have to generate an html report regarding a few databases.

I am using ibatis on the server side. One of the tables has a 'degree' sign as a part of its name. The issue is, when I print this name in html file, the degree signs converts to ? , which is not what I want开发者_Python百科.

Is there a way , that I can get the database name with special characters and show it in the same way.

Thanks

Neeraj


This looks like it might be an encoding issue between the database and your code. Make sure, that you use the same setting as the database.

Most databases use UTF-8 as encoding, nowadays. But HTML is, by default, ISO8859 and Tomcat assumes all HTML to be the same.

I guess you cannot simply rename that table and be done with it, right?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜