change file code to utf8, localization ,add use validate,fix some bug