def _normalize_char(self, char):
        try:
            char.encode(self.charset)
            return char
        except UnicodeEncodeError:
            return (
                unicodedata.normalize('NFKD', char)
                .encode('ascii', 'ignore')
                .decode('ascii')
            )
Normalize a character according to the LCD charset.
dataset/ETHPy150Open rbarrois/mpdlcd/mpdlcd/lcdrunner.py/LcdProcServer._normalize_char