I'm wondering if there is a "best" choice for collation in MySQL for a general website where you aren't 100% sure of what will be entered?
(我想知道对于一般网站而言,MySQL中是否存在“最佳”排序规则选择,您不确定100%确定要输入什么内容吗?)
I understand that all the encodings should be the same, such as MySQL, Apache, the HTML and anything inside PHP. (我知道所有编码都应该相同,例如MySQL,Apache,HTML和PHP中的任何内容。)
In the past I have set PHP to output in "UTF-8", but which collation does this match in MySQL?
(过去,我已将PHP设置为在“ UTF-8”中输出,但是在MySQL中此匹配哪种排序规则?)
I'm thinking it's one of the UTF-8 ones, but I have used utf8_unicode_ci
, utf8_general_ci
, and utf8_bin
before. (我以为它是UTF-8的其中之一,但是我之前曾使用过utf8_unicode_ci
, utf8_general_ci
和utf8_bin
。)
ask by Darryl Hein translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…