Thai edit function to set charset utf-8