<分区>
当我尝试在下面的代码中将 unicode 转换为 utf8 时 发生“function convert_from(character varying, unknown) does not exist”错误。
select convert_from(artists, 'UTF8') from songs where
to_tsvector('simple',convert_from(artists, 'UTF8'))
@@ plainto_tsquery('simple','alizee')
limit 100
“艺术家”列的类型为“TEXT”。
但是当我运行的时候
select convert_from(E'\u0422\u0438\u043c\u0430\u0442\u0438', 'UTF8');
效果不错。
我该如何解决这个问题? 我将不胜感激任何帮助。谢谢