I use chr() to convert a integer to a character. It always worked fine but, after a new version of PHP is installed on the server where my websites is hosted I am getting other results.
Here are some examples
Local server PHP 4.0.6
222 = Þ
216 = Ø
Server at webhoster PHP 4.1.2
222 = ¼
216 = °
I gues different charsets are used. How can I check this and what code can I use to prevent this from happen in the future.