The invention relates to a general method for coding Chiense character by use of stroke sequence and number as well as relevant keyboard. All strokes of Chinese character are divided into single stroke and composite stroke, and the coding is according to orders of strokes, and the code is a number. The coding principles are 'front code first', 'compromising with visual'. The code of single strokeuses number 1,2,3,4,5,6 for stroke and codes are 1,4,5. The code of composite stroke uses number 0,1,2,3,4,5,6,7,8,9 and the code is the sum of two codes of two single strokes, the largest sum is 12.Number 10, 11, 12 are composite codes, but only 0,1,2 being taken are as codes. The invention provides features of scientific coding, easy to operate, easy to learn, short length of dynamic code and expandability. It can be used in mobile phone, palm, computer, etc. information device to fast input, letter, word punctuation, and number.