Re: Question about character encoding
От | Dave Page |
---|---|
Тема | Re: Question about character encoding |
Дата | |
Msg-id | FED2B709E3270E4B903EB0175A49BCB10475E0@dogbert.vale-housing.co.uk обсуждение исходный текст |
Ответ на | Question about character encoding ("Markus Wollny" <Markus.Wollny@computec.de>) |
Список | pgsql-cygwin |
> -----Original Message----- > From: Markus Wollny [mailto:Markus.Wollny@computec.de] > Sent: 21 February 2002 14:30 > To: jm.poure@freesurf.fr; pgsql-cygwin@postgresql.org > Subject: Re: [CYGWIN] Question about character encoding > > > Jean-Michel POURE [mailto:jm.poure@freesurf.fr] wrote: > > > SQL_ASCII encoding can handle most european languages, including > German. So, > > just create a database with SQL_ASCII encoding. And this will solve > your > > problem. > > > Thanks - that did it. I just didn't think ASCII was the > correct encoding > as one usually relates ascii to one-byte standard characters. > > One more question though: It's actually possible to create databases > with names in capital letters using PGAdmin II. As it's impossible to > drop databases in PGAdmin, I tried to do it via pgsql. It > seems however, > that psql just automatically converts anything to lower case, > therefore > giving me "ERROR: DROP DATABASE: database "test" does not > exist" when I > try "drop database TEST;". > When doing "select * from pg_database;" on template1 "TEST" is sitting > there, glaring, without me being able to kick it. Therefore I have the > impression that it's absolutely not advisable to create any > object with > capitals in it's name via PG Admin II. Is that correct? If so, why not > automatically convert any names in the connect string to > lower case, in > order to prevent this from happening? Would there be still some way of > dropping such a database even though it's not possible with neither PG > Admin II nor psql? Try DROP DATABASE "TEST"; Mixed case identifiers must be quoted in PostgreSQL. In pgAdmin II, *only* databases cannot be dropped so this isn't a major issue for most things. Personally I keep everything lowercase, but that's just me :-) Regards, Dave.
В списке pgsql-cygwin по дате отправления: