Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6906177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:16:34+00:00 2026-05-27T08:16:34+00:00

I just did my first install of PostgreSQL 9.1 on Ubuntu 10.04. note: I

  • 0

I just did my first install of PostgreSQL 9.1 on Ubuntu 10.04.

note: I have done it a few times on Windows with an installer without issues.

After a bit of effort, I got it set up to connect remotely via pgAdminIII. However, I was really surprised after connecting to the db, that I got a warning about the encoding. The “postgres” database itself was created with “SQL_ASCII” encoding. Every time that I’ve installed on windows, it created the postgres DB with “UTF8” – which seems like it would be a lot better and would stop the warning message when opening up the database via pgAdminIII.

Is there something I did wrong? Is there an installation option/param to use to set the default encoding to use?

And is there anyway to fix this? I’ve read some things on the web that says that you need to dumb and restore to change the encoding of a database, but I’m not sure this is even possible on the postgres db. Is it?

Thanks for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:16:35+00:00Added an answer on May 27, 2026 at 8:16 am

    The answer provided by Erwin Brandstetter, was helpful, but for whatever reason, it didn’t work for me. The reason is that I couldn’t initdb to ever run. I kept getting a “bash: command not found” error when trying to run it with the locale. What I ended up doing was:

    changing the locale of the OS. For me, this was:

    $ update-locale LANG=en_US.UTF-8
    

    Note: then I had to reboot the server. To confirm that it worked, just run:

    $ locale
    

    with that set, I stopped and dropped the cluster:

    $ su postgres
    $ pg_dropcluster --stop 9.1 main
    

    note: main is the default cluster that got created for me (your cluster name might be different)

    $ pg_createcluster --start 9.1 main
    

    Again, I just recreated the cluster with the same name (main).

    Note: because I picked the same cluster name (main), I had to go back and update my .conf files. For me, this specifically was postgres.conf and pg_hba.conf to re-enable remote access to the box. I’m not going to include how to do that here as there is lots of documentation on the web for this. But, if someone wants to edit this answer later to include it, that would be fine! 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just migrated from Windows to Ubuntu, and I am trying to install Ruby
I just started my first Mercurial project. I did a 'cd' into my source
I just publicated yesterday my first android application. I did not tested on android
So I've just released my first module for nodejs . Things that I did:
I just did a fresh install of Apache server 2.2. Everything works. When I
I am new in rails arena. Just did my first project by myself with
I just downloaded pyWin32 ( https://sourceforge.net/projects/pywin32/ ) and started to install it. My first
I just downloaded pyWin32 ( https://sourceforge.net/projects/pywin32/ ) and started to install it. My first
I have just brought a web fontface to use for the first time. I
I have downloaded and installed locally on my Ubuntu ActiveState Perl(ActivePerl-5.14.1.1401-x86_64-linux-glibc-2.3.5-294969.tar.gz). I did ~$

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.