Sunday

mysql and php to fix character encoding

*  call mb_internal_encoding("UTF-8") at the head of my PHP scripts
*  MySQL tables all have DEFAULT CHARSET=utf8  > COLLATE=utf8_unicode_ci
*  call mysql_set_charset('utf8') immediately after I connect to the  DB with mysql_connect().
*  call header('Content-Type: text/html; charset=utf-8') before  outputting anything to the browser.
*  specify <meta http-equiv="Content-Type" content="text/html;  charset=utf-8"/> in the HEAD of my HTML.
*  FORM tags all have accept-charset="UTF-8".



No comments:

imagemagic add text to image

rem different types of text annotations on existing images rem cyan yellow orange gold rem -gravity SouthWest rem draw text and anno...