Solved

Posgresql: UTF-8/UNICODE DB

Posted on 2011-03-07
1
498 Views
Last Modified: 2016-02-10
Hello,

I'm trying to create  a postgres database on a FreeBSD 6.2 machine like this:
createdb  -E utf-8 -U pguser -p 5432 -h localhost mydb

Open in new window


When I list the databses with "psql -l", I see:
       List of databases
    Name    | Owner | Encoding  
------------+-------+-----------
 mydb    | pguser  | UNICODE

Open in new window


Why "UNICODE" and not UTF-8?

Thanks!
0
Comment
Question by:alpha-lemming
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
MrNed earned 500 total points
ID: 35066047
It's actually the same thing (UTF-8 is 8-bit Unicode). Haven't personally seen it do that, but never tried it on FreeBSD.

http://www.postgresql.org/docs/8.3/static/multibyte.html#MULTIBYTE-CHARSET-SUPPORTED
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question