Skip to content

Tag: mysql

Using REPLACE with CHAR(160) is Returning Hexadecimal as Value

I am trying to get rid of &nbsp characters in MYSQL, but am getting weird behavior where using REPLACE is returning a hexadecimal string. The original value is some HTML stored in a field with the type BLOB: The SQL I am using is this: And after executing, this is what is left in the database: What is goi…