|
 |
|
เอาฟังก์ชั่่นมาฝาก สำหรับใครที่ใช้ php+sql server ไม่อยากเปลี่ยน charset UTF-8 เป็น TIS-620 |
|
 |
|
|
 |
 |
|
จัดไปครับ ว่าแต่ถ้าข้อความเยอะ ๆ จะช้าหรือเปล่าครับ 
|
 |
 |
 |
 |
Date :
2013-09-26 13:25:34 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
พอได้นะพี่ 
|
 |
 |
 |
 |
Date :
2013-09-26 13:35:32 |
By :
compiak |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
uft8 ก็ดีอยู่แล้วนี่
แล้ว mssql ก็เก่าแล้วด้วย เพราะตั้งแต่ sql 2005 ขึ้นไป
ใช้ mssql ไม่ได้ (หรือ 2008 ขึ้นไปหว่า) ต้องใช้ sqlsrv
ยืนยันว่าควรใช้เป็น utf8 ทั้งหมดจะดีกว่า ไม่อยากให้ใช้ tis-620 หรือ window-874 เลย
ปล. ถ้า config server ใหม่ๆ นะ ขอเป็น utf8 ของเก่า encode เป็น tis-620 ก็ใช้อย่างนั้นไป
|
 |
 |
 |
 |
Date :
2013-09-26 13:36:01 |
By :
ห้ามตอบเกินวันละ 2 กระทู้ |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตอนนี้ผมใช้ 2008 ครับผม
sqlsrv บางเซิฟยังใช้ไม่ได้ครับ
|
 |
 |
 |
 |
Date :
2013-09-26 13:38:36 |
By :
compiak |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Odbc/sqlsrv/PDO ผมเขียนไว้ที่นี่ครับ
SQL Azure ร่วมกับ PHP (SQL Server) (Odbc/sqlsrv/PDO)
|
 |
 |
 |
 |
Date :
2013-09-26 14:03:25 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 05
|