jsp+ MS access 乱码
登录 | 论坛导航 -> 华新鲜事 -> 技术の宅 | 本帖共有 4 楼,分 1 页, 当前显示第 1 页 : 本帖树形列表 : 刷新 : 返回上一页
<<始页  [1]  末页>>
作者:kowaii (等级:2 - 初出茅庐,发帖:16) 发表:2004-09-11 12:08:53  楼主  关注此帖
jsp+ MS access 乱码
我的数据库的内容是中文的。
可是当我在网业上输入中文的时候,MS access 数据库储存的东西就变成了问号 (??)。

而且, MS access 数据库里的中文数据在网业上也显示不出来, 还是问号 (??)。


谁能帮我解决这个问题呀? 谢谢
Put your OWN COOL signature here!
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
作者:kowaii (等级:2 - 初出茅庐,发帖:16) 发表:2004-09-12 15:47:57  2楼
there are two different problemsyou described that the database you have contained Chinese content but when you try to disaply the results from query on web page, you get '?' it looks like encoding problem. are you using GB2312 on your web pages? also, if user input can't be stored correctly in Access database, it could mean that the webpages are encoded in GB2312 while Access is in some other encoding format.
input no problem
When I input Chinese through webpage and store in Database, it is ok. The chinese characters are displayed in database.

But when I retrieve data from database, it shows "?" on website.

so, what can I do yah?

Thanx
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
作者:kowaii (等级:2 - 初出茅庐,发帖:16) 发表:2004-09-12 23:42:53  3楼
jsp+ MS access 乱码我的数据库的内容是中文的。 可是当我在网业上输入中文的时候,MS access 数据库储存的东西就变成了问号 (??)。 而且, MS access 数据库里的中文数据在网业上也显示不出来, 还是问号 (??)。 谁能帮我解决这个问题呀? 谢谢
so what can I do now?
how can I change the UTF8 format?
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
作者:kowaii (等级:2 - 初出茅庐,发帖:16) 发表:2004-09-13 11:58:26  4楼
Access should be using UTF8 formatand if you web page is using GB2312, then it can't be displayed properly.
so what can I do now? HELP!!~~~
**********************************************************************
To discribe my situation again:
I am currently designing a chinese resource repository using JSP and MS Access.

The data in Access is in Chinese.

Case 1: when I enter data in to db through website, the chinese characters can store in Access nicely in Chinese.

Case2: When I try to retrieve data from db to webpage, all the chinese charactors become "Luan Ma". Most of the "Luan Ma" are question marks "???"

I have been trying to solve this problem for 2 days, but still could not find an solution

there are some reference, but I still could not get it.
http://www.itpub.net/247487.html
http://www.java-cn.com/bbs-jsp/show.jsp?id=1574&forum=chinese
http://www.weste.net/html/200405/20040521QBI075546.html

Do you have any idea how to solve the proble?
what is the default chinese Unicode in MS access? IE? JSP? Tomcat?
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
论坛导航 -> 华新鲜事 -> 技术の宅 | 返回上一页 | 本主题共有 4 篇文章,分 1 页, 当前显示第 1 页 | 回到顶部
<<始页  [1]  末页>>

请登录后回复:帐号   密码