Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Unicode' vs. 'String' with SQLAlchemy and PostgreSQL

I apologize in advance for my lack of knowledge concerning character encoding.

My question is: are there any inherent advantages/disadvantages to using the 'Unicode' type, rather than the 'String' type, when storing data in PostgreSQL using SQLAlchemy (or vice-versa)? If so, would you mind elaborating?

like image 757
Drew Burnett Avatar asked Apr 14 '15 00:04

Drew Burnett


1 Answers

In 99.99% of the cases go for Unicode and if possible use Python 3 as it would make your life easier.

like image 139
sorin Avatar answered Oct 17 '22 21:10

sorin