handling special/utf-8 charcaters

Hi All,

I have a table with a column whose type is varchar(32) the value it has is
'Movies & TV' . This data is loaded by Copy command, when I query this table
like select * from activity where name='Movies & TV' it won't return any record
this is mainly because of & character there is something going on with this character

When I tried

Select ISUTF8(name) from activity it returns true,

which means the data is actually stored in the UTF-8 format.

Select length(name) and length('Movies & TV') are also same.

However, when I paste these values in the vi editor I see an extra space in the DB string.

In addition, the field name in activity table can have Chines characters too, which is stored correctly in DB now.

Any idea what is going on here? Should I specify explicit utf-8 when loading the data?

Please suggest

Thanks

Comments

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file