pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: a <372660931@qq.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Does pgAgent support chinese, japanese characters?
Date: Tue, 12 Jun 2018 09:59:35 -0400
Message-ID: <27962.1528811975@sss.pgh.pa.us> (raw)
In-Reply-To: <tencent_4E53B0707BD79D0136B707B1@qq.com>
References: <tencent_4E53B0707BD79D0136B707B1@qq.com>

"=?ISO-8859-1?B?YQ==?=" <372660931@qq.com> writes:
> Hi I'm using pgAgent to set up daily or monthly tasks. 
> I have tables that with the name of Chinese or Japanese. It runs ok in normal sql script, but report non-recognizable in pgAgent SQL jobs.

First guess is that client_encoding is getting set differently in the
pgAgent-initiated sessions than elsewhere, causing incorrect character set
conversions to happen.

> I'm using windows server 2008, pgsql 10, and pgAgent 3.4, may there be a way of supporting different languages??

... unfortunately, I don't know anything about how to adjust that
in Windows.  A brute-force way would be to issue "set client_encoding"
in your scripts, but there may be a better way.

			regards, tom lane




view thread (3+ messages)  latest in thread

Message-ID: <27962.1528811975@sss.pgh.pa.us>
Permalink:  ../27962.1528811975@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27962.1528811975@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, 372660931@qq.com
  Subject: Re: Does pgAgent support chinese, japanese characters?
  In-Reply-To: <27962.1528811975@sss.pgh.pa.us>
  References: <tencent_4E53B0707BD79D0136B707B1@qq.com> <27962.1528811975@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox