add charset and java examples