Author Topic: ปรับให้ DA support UTF8  (Read 4337 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2141
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
ปรับให้ DA support UTF8
« on: พฤษภาคม 05, 2014, 03:09:12 PM »
ในกรณีมีการตั้งค่า vacation message เป็น ภาษาไทย หรือ ภาษาญี่ปุ่น สำหรับผู้ใช้งาน direct admin นะครับ
ปกติมันจะถูก encoding ภาษาเป็น iso-8859-1 โดย default แต่เราสามารถทำการเปลี่ยนได้ดังนี้

#cd /usr/local/directadmin/data/skins/enhanced
#cp -p lang/en/lf_standard.html lang/en/my_lf_standard.html
#perl -pi -e 's/iso-8859-1/UTF-8/' lang/en/my_lf_standard.html
#echo "LF_STANDARD=my_lf_standard.html" >> files_custom.conf

after that try to set vacation message with "Japanese" or "Thai" lang again.
After test seem it work!!

I could read vacation message in "Thai" and "Japanese" normally.