add char encoding and delete comment