php problem chinese word transfer problem ? Help

2008-08-13 7:24 am
I used html
<a href="getinfo.php?tbn=<? $a='雷曼兄弟'; ?>" target="content" >雷曼兄弟</a>

but the getinfo.php program reived ???? as I displayed the input when running in english window XP , it display normal for chinese window XP.

回答 (1)

2008-08-13 9:58 am
✔ 最佳答案
You need to specify the charset on every page. Put the following meta tag in the head section of every page. You may want to change UTF-8 to Big5 if that is your choice of charset. But generally UTF-8 works for most non-Latin language.

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

2008-08-15 02:10:35 補充:
Use urlencode
雷曼兄弟

2008-08-15 02:11:41 補充:
[a href="getinfo.php?tbn= " target="content" >雷曼兄弟

2008-08-15 02:13:42 補充:
都係 display 唔到,你明啦 urlencode('雷曼兄弟')


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

檢視 Wayback Machine 備份