adjust charset,etc