I have a column that contains NO-BREAK SPACE (\xC2\xA0) instead of SPACE and I need to find that rows.
Copy-pasting works:
SELECT PRODUCT_NAME
FROM TABLE t
WHERE PRODUCT_NAME LIKE '% %'
but using the code points does not:
SELECT PRODUCT_NAME
FROM TABLE t
WHERE PRODUCT_NAME LIKE '%\xC2\xA0%'
How can I find the rows where a colum contains such symbols via \x code points?
Try
Depending on your database character set you may try
CHR(106)instead ofUNISTR('\00A0')xC2 xA0is not the code point, it is the binary representation of Unicode characterU+00A0(No-Break Space) encoded at UTF-8. The Unicode code point isU+00A0or 160 (decimal)