How to type Tamil font in text box and save it in MySql

独自空忆成欢 提交于 2019-12-23 02:44:22

问题


Im developing a small web application in PHP. I want, user or admin to type tamil language in text box or textarea and save it in MySql. Please give me some easiest method to do so.


回答1:


Set MySql field collation to "utf8_general_ci"




回答2:


Vinoth, to allow a user to type in tamil on your website you might want to take a look at the tamilsg api

Usage: Copy & paste the following anywhere in the body tag of your php website and replace textareaid with the appropriate textarea id.

<script type="text/javascript">
var poplo =new Array("textareaid");
ENABLED_TIWEB = "http://api.tamilsg.com/data/lookuptable.js";
var fileref = document.createElement('script');
fileref.src = "http://api.tamilsg.com/hplus.js";
document.documentElement.appendChild(fileref);
</script>


来源:https://stackoverflow.com/questions/27377650/how-to-type-tamil-font-in-text-box-and-save-it-in-mysql

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!