I'm having a problem extracting data from a Foxpro database and putting it into a PHP array, but only when the data contains a £ sign.
I assign the db value to a php variable and all of the data is fine, including £ signs. However, I then have some code that populates an array and at this point it fails. Any data that contains a £ sign is assigned a null value in the array.
Its obviously something to do with character sets but I'm struggling to work out what the issue is. I'm running XAMPP on a Windows server. The server's locale is set to UK and I've tried setting PHP default charset to both UTF-8 and ISO-8859-1 but neither work.
Can anyone suggest a solution? I rarely have to deal with character sets so not sure where I should be heading.
Thanks
I assign the db value to a php variable and all of the data is fine, including £ signs. However, I then have some code that populates an array and at this point it fails. Any data that contains a £ sign is assigned a null value in the array.
Its obviously something to do with character sets but I'm struggling to work out what the issue is. I'm running XAMPP on a Windows server. The server's locale is set to UK and I've tried setting PHP default charset to both UTF-8 and ISO-8859-1 but neither work.
Can anyone suggest a solution? I rarely have to deal with character sets so not sure where I should be heading.
Thanks