[VB6 ] 帶有中文的網址出現亂碼

看板Visual_Basic作者時間13年前 (2012/12/18 16:57), 編輯推噓0(003)
留言3則, 2人參與, 最新討論串1/1
最近使用vb來作網址的發佈 其中 http://tw.search.yahoo.com/search?p=2012%E9%A6%AC%E9%9B%85%E9%A0%90%E8%A8%80&fr=fp-hotsearch&ei=utf-8&v=0 這裏可以看得到 2012%E9%A6%AC%E9%9B%85%E9%A0%90%E8%A8%80 = 『2012馬雅預言』 這個是UTF8的網址 今天我使用一個Textbox來輸入『2012馬雅預言』 "http://tw.search.yahoo.com/search?p=" + Text1.text + "&fr=fp-hotsearch&ei=utf-8&v=0" 這樣 在網址上發佈會呈現一個亂碼的情況,要如何將中文字轉換為utf8的格式呢? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.25.173.60

12/18 17:34, , 1F
Google第二項就有了
12/18 17:34, 1F

12/19 09:43, , 2F
我不是要作存檔讀檔 而是將string變成UTF8
12/19 09:43, 2F

12/19 13:04, , 3F
不然你以為我google什麼
12/19 13:04, 3F
文章代碼(AID): #1Gq2_ZvX (Visual_Basic)
文章代碼(AID): #1Gq2_ZvX (Visual_Basic)