ASP+ACCESS, how to show Korean on web page?

2007-11-06 6:53 pm
I used Access 2003 to create a DB and stored some Korean. Then I tried to retrieve it by ASP but all Korean characters become '?'. I have tried different charsets, both "euc-kr " and "utf-8 " don't help. Does anyone know the solution?

回答 (1)

2007-11-07 12:03 pm
✔ 最佳答案
I suggest you use Unicode because Access can store value in Unicode.

Put this meta tag in every page inside the head tag
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

Put this code in Global.asa file

Sub Session_OnStart()
Session.CodePage = 65001 ' Unicode UTF-8
Session.LCID = 1042 ' Korean
End Sub

To use Global.asa, you need to make the virtual directory an application in IIS console. I think you know how to do that.

Save the data from the form and open the database to look at the data. You should be able to see Korean text in Access table.


收錄日期: 2021-04-13 14:21:00
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20071106000051KK00690

檢視 Wayback Machine 備份