兩個用法不一樣,
自己手太賤亂加,
又沒有注意使用方法,
造成用ajax POST 資料存進去了亂碼,
像®這符號
EX: ®
使用htmlspecialchars存就會正常,
使用htmlentities存就會出現多於的亂碼,
因為htmlspecialchars只轉換&, <, >, ", '這些符號,
而htmlentities會轉化所有的html代碼, 因為在AJAX POST傳送時, ® 已經被轉成%C2%AE
如何閱讀 NBA BOX SCROE
| Player | 球員 | |
| POS | Position F – forward C - center G - guard DNP - did not play |
位置 F – 前鋒 C – 中鋒 G - 後衛 DNP - 不上場 |
| MIN | Minutes Played | 上場時間(分) |
| FGM-A 3PM-A |
FGM - field goals made (2 & 3-pt.) FGA - field goals attempted (2 & 3-pt.) |
投籃命中 投籃次數 |
| FTM-A | FTM - free throws made FTA - free throws attempted |
罰球命中 罰球次數 |
| +/- | Plus / Minus | 個人正負分 |
| OFF | Offensive rebounds | 進攻籃板 |
| DEF | Defensive rebounds | 防守籃板 |
| TOT | Total offensive and defensive rebounds | 進攻籃板和防守籃板小計 |
| AST | Assists | 助攻 |
| PF | Personal Fouls | 犯規 |
| ST | Steals | 攔截 |
| TO | Turnovers | 失誤 |
| BS | Blocked shots | 阻止敵隊投射(蓋別人火鍋) |
| BA | Blocked attempts | 敵隊阻止得分(被蓋火鍋) |
| PTS | Points | 得分 |
| Total | Team Totals | 總和 |
參考:
http://buckhead.pixnet.net/blog/post/10359142
http://www.nba.com/analysis/00422972.html
Facebook Tools - Debugger
http://developers.facebook.com/tools/debug
拉美子公司的LIKE按鈕按下去圖片都是錯的,
用Facebook提供的Debugger偵測一下之後,
圖片就對了, 想必是Facebook暫存了縮圖,
造成縮圖是錯的.
拉美子公司的LIKE按鈕按下去圖片都是錯的,
用Facebook提供的Debugger偵測一下之後,
圖片就對了, 想必是Facebook暫存了縮圖,
造成縮圖是錯的.
FreeBSD Ports Install, Update
# cd /usr/ports/ports-mgmt/portupgrade
# make install clean
#cd /usr/ports/net/cvsup-without-gui/
#make install clean
#cd /usr/share/examples/cvsup/ //切換到更新範例檔路徑
#cp ports-supfile /root/ //複製到root目錄底下
#cd /root/ //切換路徑
#vi ports-supfile //編輯設定檔
*default host=CHANGE_THIS.FreeBSD.org //官方站台(預設值)
*default host=cvsup.tw.freebsd.org //改為國內站台交大資工如此下載速度較快(還有cvsup1~13都可使用)
*default release=cvs tag=RELENG_6 //預設值
*default release=cvs tag=RELENG_6_3 //更改後只有安全更新會進入這個 branch的 source code
#cd /root
#rehash
#cvsup -g -L 2 ports-supfile //開始更新
# make install clean
#cd /usr/ports/net/cvsup-without-gui/
#make install clean
#cd /usr/share/examples/cvsup/ //切換到更新範例檔路徑
#cp ports-supfile /root/ //複製到root目錄底下
#cd /root/ //切換路徑
#vi ports-supfile //編輯設定檔
*default host=CHANGE_THIS.FreeBSD.org //官方站台(預設值)
*default host=cvsup.tw.freebsd.org //改為國內站台交大資工如此下載速度較快(還有cvsup1~13都可使用)
*default release=cvs tag=RELENG_6 //預設值
*default release=cvs tag=RELENG_6_3 //更改後只有安全更新會進入這個 branch的 source code
#cd /root
#rehash
#cvsup -g -L 2 ports-supfile //開始更新
PHP Module: Gettext
Gettext 要在原本的 php5-extensions 中設定
/usr/ports/lang/php5-extensions
make config
勾選 gettext的項目
make install clean
裝完後在重啟 apache2
在檢查 phpinfo 裡面的 gettext 有沒有啟動
有就表示成功了
接下來要下載 Poedit
來編輯 xgettext 所編釋出來的 po
在分存到各國家的資料夾下
Function
xgettext -d [poFile] [Src] --from-code=UTF8
將[Src]裡的檔案轉成PO檔
msgmerge -o [poFile] [poOld] [poNew]
將[poNew]和[poOld]檢查合併
msgfmt -o [moFile] [poFile]
將[poFile]轉成[moFile]
locale -a
檢查FreeBSD的語言檔名
putenv('LANG=zh_TW');
setlocale(LC_ALL, 'zh_TW.UTF-8');
// Specify location of translation tables
bindtextdomain("index", "./locale");
// Choose domain
textdomain("index");
/usr/ports/lang/php5-extensions
make config
勾選 gettext的項目
make install clean
裝完後在重啟 apache2
在檢查 phpinfo 裡面的 gettext 有沒有啟動
有就表示成功了
接下來要下載 Poedit
來編輯 xgettext 所編釋出來的 po
在分存到各國家的資料夾下
Function
xgettext -d [poFile] [Src] --from-code=UTF8
將[Src]裡的檔案轉成PO檔
msgmerge -o [poFile] [poOld] [poNew]
將[poNew]和[poOld]檢查合併
msgfmt -o [moFile] [poFile]
將[poFile]轉成[moFile]
locale -a
檢查FreeBSD的語言檔名
putenv('LANG=zh_TW');
setlocale(LC_ALL, 'zh_TW.UTF-8');
// Specify location of translation tables
bindtextdomain("index", "./locale");
// Choose domain
textdomain("index");
訂閱:
文章 (Atom)