ERROR: invalid byte sequence from psql - Works perfectly from pgAdmin III query window - Mailing list pgsql-general

From Anoo Sivadasan Pillai
Subject ERROR: invalid byte sequence from psql - Works perfectly from pgAdmin III query window
Date
Msg-id 772CDA49C515244FA14E34443F62E564031BC610@EX-INDIA1.internal.rmplc.net
Whole thread Raw
Responses Re: ERROR: invalid byte sequence from psql - Works perfectly from pgAdmin III query window  (Richard Huxton <dev@archonet.com>)
Re: ERROR: invalid byte sequence from psql - Works perfectly from pgAdmin III query window  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
List pgsql-general

Why the Fun_ABC1 is created and Fun_ABC12 is raising the following error, while run through psql, ( I Could create both the functions from PgAdmin III query )

 

ERROR:  invalid byte sequence for encoding "UTF8": 0x93

HINT:  This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".

 

CREATE OR REPLACE FUNCTION "Fun_ABC1"() RETURNS VOID AS

$BODY$

/***Description   :  "Desc1" – Description contains character  ***/

 

CREATE OR REPLACE FUNCTION "Fun_ABC12"() RETURNS VOID AS

$BODY$

/***Description   :  “Desc1”  – Description contains character ***/

 

Note : This was posted in pg_hackers/ As per the suggestions now reposting in general

 

 

 

Visit our Website at www.rmesi.co.in

This message is confidential. You should not copy it or disclose its contents to anyone. You may use and apply the information for the intended purpose only. Internet communications are not secure; therefore, RMESI does not accept legal responsibility for the contents of this message. Any views or opinions presented are those of the author only and not of RMESI. If this email has come to you in error, please delete it, along with any attachments. Please note that RMESI may intercept incoming and outgoing email communications.

Freedom of Information Act 2000
This email and any attachments may contain confidential information belonging to RMESI. Where the email and any attachments do contain information of a confidential nature, including without limitation information relating to trade secrets, special terms or prices these shall be deemed for the purpose of the Freedom of Information Act 2000 as information provided in confidence by RMESI and the disclosure of which would be prejudicial to RMESI's commercial interests.

This email has been scanned for viruses by Trend ScanMail.

pgsql-general by date:

Previous
From: Jorge Godoy
Date:
Subject: Re: COPY for .CSV files problem
Next
From: Gregory Stark
Date:
Subject: Re: more problems with count(*) on large table