fix encoding bug,add webkit support,modify the framework