Fixing Unicode Oops
Posted
by Mez
on Stack Overflow
See other posts from Stack Overflow
or by Mez
Published on 2009-10-08T13:04:01Z
Indexed on
2010/05/25
9:31 UTC
Read the original article
Hit count: 401
It seems that we have managed to insert into our database 2 unicode characters for each of the unicode characters we want,
For example, for the unicde char 0x3CBC, we've inserted the unicode equivalents for each of it's components (0xC383 AND 0xC2BC)
Can anyone think of a simple solution for fixing this?
I've come up with something like
SELECT replace(name, CONCAT(0xC3,0x83,0xc2,0xbc), CONCAT(0xc3,0xbc)) FROM lang
For the above, but don't want to have to do this for every unicode character!
© Stack Overflow or respective owner