看板 Visual_Basic 關於我們 聯絡資訊
最近使用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
MOONRAKER:Google第二項就有了 12/18 17:34
markchen:我不是要作存檔讀檔 而是將string變成UTF8 12/19 09:43
MOONRAKER:不然你以為我google什麼 12/19 13:04