def write_string(fid, kind, data):
 str_data = data.encode('utf-8')
 data_size = len(str_data)
 my_dtype = '>a'
 if (data_size > 0):
  _write(fid, str_data, kind, data_size, FIFF.FIFFT_STRING, my_dtype)

def write_string ( fid , kind , data ) : str_data = data . encode ( 'utf-8' ) data_size = len ( str_data ) my_dtype = '>a' if ( data_size > 0 ) : _write ( fid , str_data , kind , data_size , FIFF . FIFFT_STRING , my_dtype )
write a string tag .