Database Charset UTF-8

ကျွန်တော်တို့တွေ အများအားဖြင့် database transfer လုပ်ရင် UTF-8 မပြောင်းတာ အမြဲ ပြသနာဖြစ်တယ်ဗျ။
ကျွန်တော်တို့တွေ အစအဆုံး ပြန်ပြန်တင်နေရတာတွေ ကြုံတတ်တယ်။ အဲဒီအတွက် ကျွန်တော် sahana project လုပ်တုန်းက ရေးထားတဲ့ db_setup.php လေးက တော့ ကိုယ့် database တစ်ခုလုံး ရှိတဲ့ field တွေအပါအဝင် UTF-8 ပြောင်းပေးအောင်ရေးထားပါတယ်။
အဲဒီ file လေးကို download ချပြီး notepad နဲ့ဖြစ်ဖြစ် wordpad နဲ့ဖြစ်ဖြစ် ဖွင့်ပြီး

$db_name=’sahana’;
$host=”localhost”;
$username=”root”;
$pwd=”";

အဲဒီနေရာတွေမှာ ကိုယ့် database နဲ့ဆိုင်ရာတွေ ဖြည့်ပြီး db_setup.php ကို run လိုက်ရင် အားလုံးအဆင်ပြေသွားမှာပါ။
မြန်မာတွေအတွက် database transfer လုပ်ပြီးတဲ့အခါ အသုံးဝင်နိုင်လို့ ဖြန့်ဝေလိုက်ပါတယ်။

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>