Convert or check Chinese encoding in php

check if Trad or Simp Chinse http://stackoverflow.com/questions/4083038/recognizing-text-as-simplified-vs-traditional-chinese $test1 = iconv(“UTF-8”, “big5//TRANSLIT”, $text); $test2 = iconv(“UTF-8”, “big5//IGNORE”, $text); if ($test1 == $test2) { echo ’traditional’; } else { $test3 = iconv(“UTF-8”,…

CSS rule to disable text selection highlighting

http://stackoverflow.com/questions/826782/css-rule-to-disable-text-selection-highlighting handy for web app 21 solutions see also http://stackoverflow.com/questions/7018324/how-do-i-stop-highlighting-of-a-div-element-when-double-clicking-on http://phonegap-tips.com/articles/essential-phonegap-css-webkit-tap-highlight-color.html ==== For those who have trouble achieving the same in android browser with the touch event, html,body{ -webkit-touch-callout: none;…

Cakephp cache problem

Table for model not found in datasource default http://stackoverflow.com/questions/17145332/table-for-model-not-found-in-datasource-default I faced this problem today. The suggested solution in SOF no use. I end up cleared the cache in app/tmp/model