|
|
|
โค๊ดที่พิมพ์ใน dreamweaver ภาษาไทยเปลี่ยนเป็นอักขระแปลกๆ แก้ไงคับ |
|
|
|
|
|
|
|
ใน array ภาษามันเปลี่ยนเองจากภาษาไทยอะครับ แก้ไง เป็นทั้งไฟล์เลย ตรงอื่นก็เป็นแต่ยกตัว function มาเป็นตย.
function DateThai($strDate)
{
$strYear = date("Y",strtotime($strDate))+543;
$strMonth= date("n",strtotime($strDate));
$strDay= date("j",strtotime($strDate));
$strMonthCut = Array("","ـ╤┴.ـ╤╡.","ـ╤┤.ـ╤.","ـ╤┴ـ╤╬.ـ╤╡.","ـ╥│ـ╤┴.ـ╤┬.","ـ╤.ـ╤╡.","ـ╤┴ـ╤═.ـ╤┬.","ـ╤┤.ـ╤╡.","ـ╤╔.ـ╤╡.","ـ╤┤.ـ╤┬.","ـ╤╛.ـ╤╡.","ـ╤.ـ╤┬.","ـ╤┐.ـ╤╡.");
$strMonthThai=$strMonthCut[$strMonth];
return "$strDay $strMonthThai $strYear";
}
$(function () {
var d = new Date();
var toDay = d.getDate() + '/' + (d.getMonth() + 1) + '/' + (d.getFullYear() + 543);
$("#datepicker-th2").datepicker({ beforeShowDay: noWeekends, minDate: 0,
dateFormat: 'dd/mm/yy', isBuddhist: true, defaultDate: toDay, dayNames: ['ع│ق╛¤ق╛┼ع│ق╛¤قûôع│ق╛¤أ╥ع│ق╛¤ق╛║ع│ق╛¤ق╛ع│ق╛¤ق╜،ع│ق╛─أ«', 'ع│ق╛¤أ╔ع│ق╛¤قû╝ع│ق╛¤ق╜╜ع│ق╛¤أ╥ع│ق╛¤ق╜ع│ق╛─أ«', 'ع│ق╛¤ق╛┼ع│ق╛¤قû╝ع│ق╛¤أ╞ع│ق╛¤ق╛┴ع│ق╛¤قûôع│ق╛¤ق╜', 'ع│ق╛¤آع│ق╛¤ق╛¤ع│ق╛¤ق╜║', 'ع│ق╛¤آع│ق╛¤آ¤ع│ق╛¤ق╛╚ع│ق╛¤قû╝ع│ق╛¤ق╛╜ع│ق╛¤آع│ق╛¤ق╛ع│ق╛¤ق╛،', 'ع│ق╛¤ق╛ع│ق╛¤ق╛¤ع│ق╛¤ق╜¤ع│ق╛¤ق╜ع│ق╛─أ«', 'ع│ق╛─ق╜éع│ق╛¤ق╛╜ع│ق╛¤قûôع│ق╛¤ق╜ع│ق╛─أ«'],
dayNamesMin: ['ع│ق╛¤ق╛┼ع│ق╛¤قûô.','ع│ق╛¤أ╔.','ع│ق╛¤ق╛┼.','ع│ق╛¤آ.','ع│ق╛¤آع│ق╛¤آ¤.','ع│ق╛¤ق╛.','ع│ق╛¤ق╛╜.'],
monthNames: ['ع│ق╛¤ق╜═ع│ق╛¤ق╜¤ع│ق╛¤ق╜ع│ق╛¤قûôع│ق╛¤ق╛┴ع│ق╛¤ق╜═','ع│ق╛¤ق╜¤ع│ق╛¤ق╛¤ع│ق╛¤ق╜═ع│ق╛¤ُ├┤ع│ق╛¤قûôع│ق╛¤آع│ق╛¤قû╝ع│ق╛¤ق╜╜ع│ق╛¤ق╜║ع│ق╛─أ«','ع│ق╛¤ق╜═ع│ق╛¤ق╛،ع│ق╛¤ق╜╜ع│ق╛¤قûôع│ق╛¤ق╛┴ع│ق╛¤ق╜═','ع│ق╛─ق╜éع│ق╛¤ق╜═ع│ق╛¤ق╛ع│ق╛¤قûôع│ق╛¤ق╜،ع│ق╛¤ق╜╜','ع│ق╛¤آع│ق╛¤آ¤ع│ق╛¤ق╛ع│ق╛¤ُ├┤ع│ق╛¤قûôع│ق╛¤ق╛┴ع│ق╛¤ق╜═','ع│ق╛¤ق╜═ع│ق╛¤ق╛║ع│ق╛¤أ؛ع│ق╛¤ق╛¤ع│ق╛¤ق╜╜ع│ق╛¤قûôع│ق╛¤ق╜،ع│ق╛¤ق╜╜','ع│ق╛¤ق╜¤ع│ق╛¤ق╜ع│ق╛¤ق╜¤ع│ق╛¤ق╛╛ع│ق╛¤قûôع│ق╛¤ق╛┴ع│ق╛¤ق╜═','ع│ق╛¤ق╛╜ع│ق╛¤ق╛║ع│ق╛¤أ╞ع│ق╛¤ق╛╚ع│ق╛¤قûôع│ق╛¤ق╛┴ع│ق╛¤ق╜═','ع│ق╛¤ق╜¤ع│ق╛¤قû╝ع│ق╛¤ق╜╜ع│ق╛¤ق╜،ع│ق╛¤قûôع│ق╛¤ق╜،ع│ق╛¤ق╜╜','ع│ق╛¤ق╛ع│ق╛¤ق╛¤ع│ق╛¤ق╜│ع│ق╛¤قûôع│ق╛¤ق╛┴ع│ق╛¤ق╜═','ع│ق╛¤آع│ق╛¤آ¤ع│ق╛¤ق╛ع│ق╛¤أ╔ع│ق╛¤ق╛║ع│ق╛¤ق╜¤ع│ق╛¤قûôع│ق╛¤ق╜،ع│ق╛¤ق╜╜','ع│ق╛¤ق╜║ع│ق╛¤قû╝ع│ق╛¤ق╜╜ع│ق╛¤ق╛ع│ق╛¤قûôع│ق╛¤ق╛┴ع│ق╛¤ق╜═'],
monthNamesShort: ['ع│ق╛¤ق╜═.ع│ق╛¤ق╛┴.','ع│ق╛¤ق╜¤.ع│ق╛¤آ.','ع│ق╛¤ق╜═ع│ق╛¤ق╛،.ع│ق╛¤ق╛┴.','ع│ق╛─ق╜éع│ق╛¤ق╜═.ع│ق╛¤ق╜،.','ع│ق╛¤آ.ع│ق╛¤ق╛┴.','ع│ق╛¤ق╜═ع│ق╛¤ق╛║.ع│ق╛¤ق╜،.','ع│ق╛¤ق╜¤.ع│ق╛¤ق╛┴.','ع│ق╛¤ق╛╜.ع│ق╛¤ق╛┴.','ع│ق╛¤ق╜¤.ع│ق╛¤ق╜،.','ع│ق╛¤ق╛.ع│ق╛¤ق╛┴.','ع│ق╛¤آ.ع│ق╛¤ق╜،.','ع│ق╛¤ق╜║.ع│ق╛¤ق╛┴.']});
$("#datepicker-en").datepicker({ dateFormat: 'dd/mm/yy'});
$("#inline").datepicker({ dateFormat: 'dd/mm/yy', inline: true });
});
Tag : PHP, MySQL
|
ประวัติการแก้ไข 2019-02-11 21:08:08
|
|
|
|
|
Date :
2019-02-11 20:59:02 |
By :
10215890978539437 |
View :
634 |
Reply :
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
กำหนดฟอนต์ใหม่
เมนู edit/preference/font
เลือก ไทย กรณีที่เป็น ascii (Tis620)
หรือ unicode ถ้าเป็น utf8
|
|
|
|
|
Date :
2019-02-11 21:51:37 |
By :
Chaidhanan |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|