문제

Cold someone could explain why this returns true:

SELECT BINARY 'â' RLIKE '[™]';
SELECT BINARY 'é' RLIKE '[©]';

What could be the fix ? Is it some misconfiguration on my part?


UPDATE:

found that using (™|©) instead of [™©] would work as a first workaround

도움이 되었습니까?

해결책

From the documentation:

Warning
The REGEXP and RLIKE operators work in byte-wise fashion, so they are not multi-byte safe and may produce unexpected results with multi-byte character sets.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top