Re: [PHP] Problem changing file encoding

2008-10-22 Thread Thodoris
On 22 Oct 2008 at 14:39, Thodoris wrote: Hi guys, I am developing a project and I wrote an interface to import contracts in it. The problem is that when the user uploads the file I don't know what is the encoding it has. So I decided that a good idea is to make the user tell me the encod

Re: [PHP] Problem changing file encoding

2008-10-22 Thread Yeti
A neat way to transcode between different encodings is htmlentities and html_entity_decode [1, 2] EXAMPLE: There was a user with a similar problem at phpbuilder forums [3]. Have a closer look at it. [1] http://us2.php.net/manual/en/function.htmlentities.php [2] http://us2.php.net/manual/en/fun

Re: [PHP] Problem changing file encoding

2008-10-22 Thread Ian
On 22 Oct 2008 at 14:39, Thodoris wrote: > Hi guys, > I am developing a project and I wrote an interface to import contracts > in it. The problem is that when the user uploads the file I don't know > what is the encoding it has. So I decided that a good idea is to make > the user tell me the en

[PHP] Problem changing file encoding

2008-10-22 Thread Thodoris
Hi guys, I am developing a project and I wrote an interface to import contracts in it. The problem is that when the user uploads the file I don't know what is the encoding it has. So I decided that a good idea is to make the user tell me the encoding from a drop down before I parse the file.