add charcode.h and charcode.c