Proper character encoding is critical for regional language scripts.
In PHP you can set locale programmatically:
https mallumvus malayalamphp install
The Evolution and Implementation of Malayalam-based PHP Web Systems