I need to setup my PostgreSQL DB's text encoding to handle non-American English characters that you'd find showing up in languages such as German, Spanish, and French. What character encoding should I use?
+4
A:
Start with UTF-8
. It covers every character used at the world. Prepare your DB for world domination.
BalusC
2009-11-06 17:20:09
I like world domination.
xanadont
2009-11-06 17:33:05
Very good. Good luck.
BalusC
2009-11-06 17:38:58
+3
A:
Unless you have a very good reason not to, use UTF-8. For the list of languages you cite, latin-1 would be acceptable (but not quite: it misses one, admittedly are, character for French: œ). Unicode is very mature now, there is little reason to reject it on principle. On the contrary, if you ever need to extend the list of languages you work with, you will be glad to have chosen an encoding that's able to deal with them.
Arthur Reutenauer
2009-11-06 17:21:53
That's kind of the point of “accepting” an answer :-) No worries.
Arthur Reutenauer
2009-11-06 18:11:03