pCloud Partner Program

[ASP]過濾非BIG5編碼字元

程式技術/ASP 2014/10/28 10:08
views: 192546 times
這篇文章利用了之前的單字元判斷是否為 BIG5 的 ASP程式進行實作 (link), 由於是一個字一個字判定, 所以效率不會太好, 但可以快速解決有關在 UTF-8轉到 BIG5時, 不在該字元集的文字內容, 以過濾掉這類特殊的問題. 程式碼如下:



以上的程式可以有效地將非在 Big5 字元集中的文字過濾, 避免與傳統編碼程式溝通時的問題.

[2014/11/10 11:12]
若是有需要再補上 ASCII 字元集區段的部分, 可以使用 ASC 於 32~126 的 ASCII Printable 即可(參考資料: http://en.wikipedia.org/wiki/ASCII#ASCII_printable_code_chart), 記得是在轉 code page前測試 ASCII, 程式碼如下:


top
TAG , ,

Trackback Address :: http://diary.tw/tim/trackback/1090

  1. Tracked from china product quality. 2017/12/01 23:30 DELETE

    Subject: china product quality.

    Find the best business consulting china currently now in stock and at great prices today!
  2. Tracked from Mural wallpaper for sale 2017/12/02 02:07 DELETE

    Subject: Mural wallpaper for sale

    Find the best Mural wall paper that are available and on sale today!
  3. Tracked from outdoor gas fire pit kit 2017/12/02 14:41 DELETE

    Subject: outdoor gas fire pit kit

    Get professional Click Here that are available and currently available now!
  4. Tracked from high quality fire pits 2017/12/03 02:21 DELETE

    Subject: high quality fire pits

    Get professional brass fire pit burners that's in stock plus on sale now!

Write a comment


PREV : [1] : ... [85] : [86] : [87] : [88] : [89] : [90] : [91] : [92] : [93] : ... [473] : NEXT



Nextbit Robin 5.2吋六核心智慧型手機 Microsoft Office 365 中文家用版PKC (無光碟)
ASUS華碩 AC1900 雙頻無線路由器 RT-AC68U 美國 VORNADO 533 渦流空氣循環機 (黑色)
御茶園 每朝健康綠茶(650mlx24入) 每朝健康 雙纖綠茶(650mlx24入)


 Waiting...