Be able to set charset configuration

Could check and merge this modification?