Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmNSs-00019C-NX for pgsql-general@arkaria.postgresql.org; Wed, 04 May 2022 22:27:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nmNSp-00068E-SJ for pgsql-general@arkaria.postgresql.org; Wed, 04 May 2022 22:27:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmNSn-000668-Q9 for pgsql-general@lists.postgresql.org; Wed, 04 May 2022 22:27:19 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmNSf-0004y0-Ad for pgsql-general@lists.postgresql.org; Wed, 04 May 2022 22:27:17 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id AD4F15C0219; Wed, 4 May 2022 18:27:05 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 04 May 2022 18:27:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1651703225; x= 1651789625; bh=X1oEIIVYfl4eMyS3q3hn/TmizmVOfLxw883aUj/ag7E=; b=W k61VUQaFo+jQYTNCu7uBfi8CIPpLXQlh0It4AksdUf77a+3PMOG64fUEg9YGtfHn WW9y+9xBq+CHD8fUFg0wUPi+erEEwkEYFCUxUoPCz0e9OHtLZbUuWURM36keUi37 G7z01Yt4bpLg+IydZm31mMW9N3fogOmyvupwjzDn6tAx5z/4yN/shNuH+5JMCFsf H+Af5+UrQEcDR5K/iczb7kVIUbQ8sFqIco88Bu4IGl9VeGF4wBgEJ2m9NGb/ZNoZ C16mMgWv/hFDIeW/Ow6kAkMlbx43S2xlm8PElP0a4nUVbjMy3G1wFXmG9zxIdCBz VJ5Os6odv+4c8u5bXTx/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1651703225; x=1651789625; bh=X1oEIIVYfl4eMyS3q3hn/TmizmVO fLxw883aUj/ag7E=; b=B7yeRtiWU4lWqUXhThzBPnziC3nCKuZPrQcjawqO6qRX p5hbiLWqeAdPcZ9x557OkX1jSJIhjflp6XiwsNqPELEVbTsBCaypZVyhwNg2Pjox mGv5rXb3OL3z/7fWOIL+UZRTekCnaezwd2yDf8cfJGr+DZqHhsCV0xxhrvMUeEn4 KJWkBWHMcOfthGUo4XeNmdTjlxasW6SIVQS4dXwuDI4ktMjBBJcckt3xzSYR8uPd YXGJCxWXkdpTeueAvOgx65Gf9yQJSrQaCVBCyToSWoQaMTyTuRiIP48ddLUGTk2e rKqS8OfaMftaPP0qUiBV6Nm8OUwu8ZaSj5okLN3cuA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedtgddutdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepleekgeejhfekteehfeduveetheeivdduheekudelteef vdffueehtddvgedtfeefnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgr nhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 May 2022 18:27:04 -0400 (EDT) Message-ID: Date: Wed, 4 May 2022 15:27:03 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: WIN1252 vs UTF8 database encoding Content-Language: en-US To: JORGE MALDONADO , pgsql-general@lists.postgresql.org References: From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 5/4/22 14:51, JORGE MALDONADO wrote: > Hi, > > I am currently working with a PostgreSQL database created with *WIN1252 > *encoding because the data will be in Spanish language. So, both > *Collation* and *Character type* are set to *Spanish_Mexico.1252* > > After reading a bit more about encoding, it seems to me that I can use > *UTF8* encoding so characters for all languages are available and keep > *Collation* and *Character type* as *Spanish_Mexico.1252*. I guess that > using *UTF8* as the encoding method will keep databases more general. I > think that using *WIN1252* for encoding is restrictive. > > Does it make sense? Yes: https://www.postgresql.org/docs/current/multibyte.html "On Windows, however, UTF-8 encoding can be used with any locale." > > Regards, > Jorge Maldonado -- Adrian Klaver adrian.klaver@aklaver.com