Skip site navigation (1) Skip section navigation (2)

Re: HELP!!!! UNICODE problem

From: "Vimala S(dot)P(dot)" <vimala(at)ncb(dot)ernet(dot)in>
To: <fi94te02(at)fi(dot)usj(dot)edu(dot)lb>
Cc: <pgsql-php(at)postgresql(dot)org>
Subject: Re: HELP!!!! UNICODE problem
Date: 2004-04-27 03:52:39
Message-ID: Pine.LNX.4.33.0404270922060.29154-100000@trinetra.ncb.ernet.in (view raw or flat)
Thread:
Lists: pgsql-php

Hi,
          U could use urlencode if the method is get. Its its post, then
there will be no problem.

-vimala/.


On Mon, 26 Apr 2004 fi94te02(at)fi(dot)usj(dot)edu(dot)lb wrote:

> Hello,
>
>     I am using postgresql and PHP to develop an application supporting
> English/French/Arabic Data. I am using PHP5RC1 and Postgresql 7.4.2
>
>     When the user enters french caracters (,,...) I get the following error.
>
> ====================
>
>     Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid
> byte sequence for encoding "UNICODE": 0xe96d61 in
> /usr/local/apache2/htdocs/Classes/DBAdapter.class.php on line 27
> ====================
>
> I managed to save my SQL string into a file. When open with vi, the file reads
> ==============
> update classe set code='MATE',description='Mathmatiques
> Elmentaires',cycle='SEC',classesuperieure=NULL,info=NULL where code='MATE'
> ~
> ==============
>
> whereas the command cat shows
>
> ==============
> update classe set code='MATE',description='Math&#65533;matiques El&#65533;mentaires',cycle
> ='SEC',classesuperieure=NULL,info=NULL where code='MATE'
> ==============
>
> I tried to figure out what to do; when I copy and paste the content of the
> file into the "psql" tool, it works perfectly and I can see the accented
> letters in my browser; whereas the psql's command "\i <filename>" generates
> the same.
>
> Any help would be appreciated
>
> Regards
> Dani Mezher
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>


In response to

pgsql-php by date

Next:From: Imam MalikDate: 2004-04-27 03:59:12
Subject: Report Generator
Previous:From: Christopher Kings-LynneDate: 2004-04-27 02:44:43
Subject: Re: HELP!!!! UNICODE problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group