def get_next_character(f):
  
  c = f.read(1)
  while c:
    while True:
      try:
        yield c.decode('utf-8')
      except UnicodeDecodeError:
        
        
        c += f.read(1)
      else:
        
        c = f.read(1)
        break


with open(,) as f:
    for c in get_next_character(f):
        print(c)