update charset and details