I am using an application to generate file that is list of variables, this is generated for me via FileMaker. The file is then required in my PHP script. FileMaker seems to put UTF 16 encoding on this file. It looks exactly the same as the UTF 8 version but when I try use it all I get is Chinese in the browser. I was wondering if I could use something like
utf8_encode ( string $data )
on the result to make it work. I don’t know how to do this or is it even possible. Can you wrap require once in a function like this and make do the proper encoding? I welcome any advice or different/better suggestions. Thanks