I'm working with PHPs native Soap classes and have a bit of a problem when returning certain characters in the response array.

Everything works well with standard characters but when the content contains characters I'm receiving an error.

I've read about setting the encoding on the soap client and server to 'UTF-8', which I have done.

However, this doesn't seem to solve the issue.

I've resolved the problem by using str_replace() to replace all occurrences of but wondered if anyone knew a better way of solving this issue?