[問題] 請問 url encode 字串怎樣轉回 utf-8
請問一個類似以下的字串,要怎樣還原成 utf-8,這應該是中文。
"%A4%A4%B9%FC%A7%EB"
我用 CGI::unescape(s) 會傳回 "\xA4\xA4\xB9\xFC\xA7\xEB"
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 1.160.30.231
推
08/19 12:02, , 1F
08/19 12:02, 1F
→
08/19 12:03, , 2F
08/19 12:03, 2F
→
08/19 12:15, , 3F
08/19 12:15, 3F
→
08/19 12:16, , 4F
08/19 12:16, 4F
→
08/19 21:45, , 5F
08/19 21:45, 5F
→
08/19 21:45, , 6F
08/19 21:45, 6F
→
08/20 20:37, , 7F
08/20 20:37, 7F
Ruby 近期熱門文章
PTT數位生活區 即時熱門文章