encoding - how-to query mysql utf-8 table using ASCII -
i have created mysql 5.6 table column encoded in utf-8, characters in romanian, czech, hungarian, polish, french, german, scandinavian language(s) - i.e. european characters, quite non-ascii.
however, query column using ascii characters - e.g. in clause- ă,î,â,ș,ț,ü,ä,ö etc. characters can (succesfully) queried using a,e,i,o,u,s,t etc.
is possible ?
there cheat sheet knowing letters map "equal" under collations in utf8 collations agrees Ł
not mapped l
collation. general_ci
sorts after z
; utf8_unicode_520_ci
sorts l
; rest sort before m
.
polish_ci
treats Ę
distinct rest of e
-like characters. ditto Ą
. baltic states tend keep accented consonants separate.
in polish_ci
, Ń
(hex c584
) collates after n
, before o
; other collations treate equal n
.
utf8_unicode_520_ci best collation you.
also, might consider "combining" accents -- 2 utf8 'characters' "combine" make single characters. utf8_unicode_ci
collates 'correctly' of them, seen here.
Comments
Post a Comment