Hi,
I'm not completely sure but the string might be utf8 encoded.
Try to use something like $theString = utf8_decode($theString); inside the PHP script.
I pasted the example you posted into a test script and applied utf8_decode. After that the script displayed António.
Thomas