要求 给出一个字符串如 “A journey of, a thousand 'miles' must can't \"begin\" with a single step.” ,通过 PHP 程序处理变成 “a journeY oF, A thousanD 'mileS' musT can'T "begiN" witH A singlE steP.” 注意:1.每个单词最后的字符如果是大写就变成小写,如果是小写就变成大写.2.需要考虑类似 can't 这种形式的转…
ä和a插入到唯一键时总提示重复 总提示:Duplicate entry 'a' for key 'name' 后来发现我用的COLLATE是utf8_general_ci,改为utf8_bin即可,命令如下: ALTER TABLE table CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin; 注意加上“ CONVERT TO ” 看样做国际化站点最好用区分大小的编码 参考问答:http://stackoverflow.com/questions/6…