Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C25AAB5DBD0 for ; Mon, 10 Oct 2011 05:20:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 87831-09 for ; Mon, 10 Oct 2011 08:20:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 2D081B5DBCA for ; Mon, 10 Oct 2011 05:20:32 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p9A8KWf4064381 for ; Mon, 10 Oct 2011 08:20:32 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p9A8KWOu064380; Mon, 10 Oct 2011 08:20:32 GMT (envelope-from www) Date: Mon, 10 Oct 2011 08:20:32 GMT Message-Id: <201110100820.p9A8KWOu064380@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6246: character encoding for 64 bit From: "Bo" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201110/70 X-Sequence-Number: 31340 The following bug has been logged online: Bug reference: 6246 Logged by: Bo Email address: bo@budget123.dk PostgreSQL version: 9.1 Operating system: Windows server 2008 Description: character encoding for 64 bit Details: I have just installed postgresql-9.1.1 on a windows server 2008 64 (from binary postgresql-9.1.1-1-windows-x64) One database is in latin1 encoding and when connecting to it with psql i get an error: (two examples, one working and one not. postgres db is in utf8) ********************************** D:\>d:\PostgreSQL\9.1\bin\psql.exe -d postgres -U postgres -c "comment on database demo_ is 'test'" Password for user postgres: COMMENT D:\>d:\PostgreSQL\9.1\bin\psql.exe -d demo_ -U postgres -c "comment on database demo_ is 'test'" Password for user postgres: psql: FATAL: conversion between WIN1252 and LATIN1 is not supported ***************************** No matter what codepage the console is set to (with chcp). Default was 850, i have tried 1252, 28591 and 65001. I have the exact same setup on a windows xp 32 bit without this issue. So im guessing it has to do with the 64 bit version of psql.. Thanks for any light you can shed on this. In any case i hope you can use this report. Regards Bo TJ