No, es el mismo error.

postgres=# CREATE DATABASE mi_base
postgres-#  WITH OWNER = postgres
postgres-#  TEMPLATE = template0
postgres-#  ENCODING = 'UTF8'
postgres-#  CONNECTION LIMIT = -1;
ERROR:  encoding "UTF8" does not match locale "es_AR.iso88591"
DETAIL:  The chosen LC_CTYPE setting requires encoding "LATIN1".
postgres=#

Por lo que vengo leyendo:
http://grokbase.com/t/postgresql/pgsql-es-ayuda/0855eb0bvw/bases-de-datos-utf-8-y-latin1-en-un-mismo-server

http://grokbase.com/t/postgresql/pgsql-general/083y5tj295/locale-encoding-mismatch

Tendría que hacer un cambio importante en el servidor y no estaría en 
condiciones de tocarlo tanto, por las bases de datos que ya tiene.


En Wed, 17 Jan 2018 14:02:27 -0300, Jaime Casanova 
<jaime.casan...@2ndquadrant.com> escribió:

2018-01-17 11:43 GMT-05:00 Néstor Ramires <nrami...@rosario.gov.ar>:

postgres=# CREATE DATABASE mi_base
WITH OWNER = postgres
ENCODING = 'UTF8'
CONNECTION LIMIT = -1;
ERROR: encoding "UTF8" does not match locale "es_AR.iso88591"
DETAIL: The chosen LC_CTYPE setting requires encoding "LATIN1".
postgres=#

¿como puedo sortear este inconveniente sin modificar la codificacion por
defecto?


intenta usando template0 como template
"""
CREATE DATABASE mi_base
 WITH OWNER = postgres
 TEMPLATE = template0
 ENCODING = 'UTF8'
 CONNECTION LIMIT = -1;
"""



--
  Ing. Agrimensor Néstor Ramires
  Departamento de Cartografía Digital
  Dirección General de Topografía y Catastro
  Municipalidad de Rosario

Reply via email to