ต้อง encoding เป็นภาษาไทยทุกหน้าเลยค่ะ

ต้อง encoding เป็นภาษาไทยทุกหน้าเลยค่ะ

by Patcharaporn Leartsurawat -
Number of replies: 4
มีวิธีแก้ทางไหนบ้างค่ะ ที่เราไม่ต้องมากดเปลี่ยนภาษาทุกครั้งที่มีการเปลี่ยนหน้าmixed
In reply to Patcharaporn Leartsurawat

ตอบ: ต้อง encoding เป็นภาษาไทยทุกหน้าเลยค่ะ

by ศราวุธ เรืองสวัสดิ์ -
ไม่นี่ครับ...ลองปิดแล้วเปิดเข้าไปใหม่...หรือถ้ายังไม่หายไปแก้ภาษาในการปรับตั้งค่าเป็น th_TH ดูครับ
In reply to Patcharaporn Leartsurawat

ตอบ: ต้อง encoding เป็นภาษาไทยทุกหน้าเลยค่ะ

by สรวง ศรีแก้วทุม -

ที่ผมพบ ขณะติดตั้งภ้าเลือกภาษาไทยจะต้อง encoding เป็นภาษาไทยทุกหน้า พอติดตั้งเสร็จ แล้วออกจากระบบ จากนั้น login ใหม่อีกครั้ง ก็สามารถใช้งานได้ดีไม่มีปัญหา

ไม่ทราบว่าตอบตรงประเด็นหรือเปล่านะ

หรือจะลองดูที่บอร์ดนี้เพิ่มเติม http://moodle.org/mod/forum/discuss.php?d=10466

In reply to Patcharaporn Leartsurawat

ตอบ: ต้อง encoding เป็นภาษาไทยทุกหน้าเลยค่ะ

by prachid tinnabutr -

สงสัยคุณติดตั้งบนLinux Redhat V9หรือ Fedora core2
คุณต้องแก้ไขที่ค่า Server ให้รู้จักภาษาไทยก่อน (ถ้าคุณเป็นเจ้าของserver หรือเป็นผู้ดูแลระบบเอง) โดยเข้าไปแก้ไขค่าที่ etc/httpd/httpd.conf ด้วย editor ใน redhat หาข้อความตามที่ให้มา แล้วแก้ไขค่าตามตัวที่มีสีแดงดังนี้



# DefaultLanguage nl(ใส่ # ปิดหน้าซะ)
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases
# the two character 'Language' abbreviation is not identical to
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Danish (da) - Dutch (nl) - English (en) - Estonian (et)
# French (fr) - German (de) - Greek-Modern (el)
# Italian (it) - Norwegian (no) - Norwegian Nynorsk (nn) - Korean (kr)
# Portugese (pt) - Luxembourgeois* (ltz)
# Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
# Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
# Russian (ru) - Croatian (hr)
#
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .et
AddLanguage fr .fr
AddLanguage de .de
AddLanguage he .he
AddLanguage el .el
AddLanguage it .it
AddLanguage ja .ja
AddLanguage pl .po
AddLanguage kr .kr
AddLanguage pt .pt
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pt-br .pt-br
AddLanguage ltz .ltz
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage tw .tw
AddLanguage zh-tw .tw
AddLanguage hr .hr
AddLanguage th .th

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en th nl et fr de el it ja kr no pl pt pt-br ltz ca es sv tw
#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all pages sent out. This is
# always a good idea and opens the door for future internationalisation
# of your web site, should you ever want it. Specifying it as
# a default does little harm; as the standard dictates that a page
# is in iso-8859-1 (latin1) unless specified otherwise i.e. you
# are merely stating the obvious. There are also some security
# reasons in browsers, related to javascript and URL parsing
# which encourage you to always set a default char set.
#
# AddDefaultCharset ISO-8859-1(นี่คือตัวปัญหาให้ต้อง endcoding ในทุกหน้าครับ)ใส่ # ดักหน้าไม่ให้ใช้คำสั่งนี้ซะ)

#
# Commonly used filename extensions to character sets. You probably
# want to avoid clashes with the language extensions, unless you
# are good at carefully testing your setup after each change.
# See ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets for
# the official list of charset names and their respective RFCs
#
AddCharset ISO-8859-1

In reply to Patcharaporn Leartsurawat

ตอบ: ต้อง encoding เป็นภาษาไทยทุกหน้าเลยค่ะ

by Kiattisak Sittirach -

ตามที่ท่าน ผศ.ประชิด ทิณบุตร