def add_codec(charset, codecname):
 CODEC_MAP[charset] = codecname

def add_codec ( charset , codecname ) : CODEC_MAP [ charset ] = codecname
add a codec that map characters in the given charset to/from unicode .