encoding support 4 mapscript 

I hope that my 3 years old patch can accepted this time, I guess I follow the rules this time ... 
Best regards,