發表文章

目前顯示的是 6月, 2011的文章

Delphi 2010 寫入UTF8檔案

Delphi 2010還沒完全Unicode化,但是在寫入UTF8檔案方面,和2007版又不太一樣。 Unicode編碼,基於文字檔的檔頭,有以下的檔頭編碼方式: EF BB BF    UTF-8 FE FF     UTF-16/UCS-2, little endian FF FE     UTF-16/UCS-2, big endian FF FE 00 00   UTF-32/UCS-4, little endian. 00 00 FE FF   UTF-32/UCS-4, big-endian.

Delphi 2010 dbExpress 連接MySQL錯誤

使用Delphi 2010的dbExpress元件TSQLConnection連接MySQL 5.5時,一直出現以下的錯誤: Cannot Load LIBMYSQL.dll (error code nnn). The LibMysql.dll library may be missing from the system path or you may have an incompatible version of the library installed. 好吧,遇到問題就是要想辦法處理掉它,查了一下別人的作法,是把libmysql.dll放在Windows目錄的System32下面,我依樣畫葫蘆,結果是失敗.... 真的囧到了....無論我怎麼弄,就是不行。最後是解決了,不過花了我一天的時間orz