[FX.php List] encode problem?
Troy Meyers
tcmeyers at troymeyers.com
Wed Oct 8 11:47:07 MDT 2008
Roger,
You need this in the <head>...</head> portion of the page:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
...AND you need to make sure the php files are also SAVED with the proper encoding. In BBEdit that's done by selecting "Unicode (UTF-8, no BOM)" at the bottom of the window, and re-saving the file if it wasn't that way to begin with.
-Troy
> Roger
>
> I've checked that the 'sending page is using utf-8 and have tried
> adding the following tp the top of my PHP 'action' page but still no
> luck.
>
> header('content-type: text/html; charset: utf-8');
>
> Roger
>
> From: Roger Moffat
>
> Sent: Wednesday, October 08, 2008 6:02 PM
>
> To: Roger Price ; FX.php Discussion List
>
> Subject: Re: [FX.php List] encode problem?
>
> On Oct 8, 2008, at 12:55 PM, Roger Price wrote:
>
> An 'action' page (written wholly in PHP) which updates a FileMaker
> database has until now been working fine.
>
> It now returns am error 958 when '£' symbol (British Pound) is
> entered into the text field to be updated. This is being encoded as
> '%A3' and causes the update to fail. Elsewhere in an FCKedit field the
> '£' is encoded as 'pound%3B' which works OK.
>
> I know that this must be an encode problem but how do I make this
> work please?
>
> Is the charset of the page set to UTF-8?
>
> It needs to be for this to work correctly I believe.
>
> Roger
More information about the FX.php_List
mailing list