google chart api 希望在圖中顯示中文 - Google

Table of Contents

以用"chart" "api"爬文

我希望利用google chart api在圖中顯示中文

目前google到的都說中文參數無解

但是我還是有找到顯式中文的方法

圖例
http://chart.apis.google.com/chart?chs=250x100&chd=t:60,20&cht=p3&chl=%E5%8F%B0%E5%8C%97%7CXYZ

縮址:
http://ppt.cc/ZEgg

當中"台北"的參數是"%E5%8F%B0%E5%8C%97%7"

目前看來似乎只有此種解法

所以想請問這是哪一種編碼? 要怎麼把中文字轉成這種編碼?


--

All Comments

Harry avatarHarry2009-10-24
Adele avatarAdele2009-10-27
看不懂ㄟ;我直接&chl=我是中文 就出現中文了, Chrome 4.0
Ina avatarIna2009-11-01
我把檔案改成utf8 用php的urlencode()就解決了 謝謝