Chaostreff-Potsdam / erika3004

19 stars 5 forks source link

µ support #31

Open cyroxx opened 4 years ago

cyroxx commented 4 years ago
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/pi/erika3004/erika/tcp_server.py", line 53, in <module>
    print_to_erika(sanitized_tweet)
  File "/home/pi/erika3004/erika/tcp_server.py", line 30, in print_to_erika
    erika.print_ascii(sanitized_tweet[i])
  File "/home/pi/erika3004/erika/erika.py", line 47, in print_ascii
    key_id = self.ddr_ascii.encode(c)
  File "/home/pi/erika3004/erika/erica_encoder_decoder.py", line 17, in encode
    return self.ascii_2_ddr[data]
KeyError: 'µ'
ArchibaldBienetre commented 4 years ago

mu is already part of the current charTranslation.json on master:

"μ": "07",

@cyroxx close, fixed?

If not, would unicode normalization solve the issue?