astro-pi / python-sense-hat

Source code for Sense HAT Python library
https://sense-hat.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
510 stars 256 forks source link

Accented chracters in sense.show_message() #81

Open g-vidal opened 7 years ago

g-vidal commented 7 years ago

Hi, I am trying to write some french text on the sense-hat led matrix, it works perfectly for unaccented ASCII characters but I cannot write french accented characters, while the print() commands works perfectly.

# -*- coding: utf-8 -*-

from sense_hat import SenseHat
sense = SenseHat()
sense.set_rotation(180)
sense.low_light = True
sense.show_message('Fête de la science', scroll_speed=0.05, text_colour=[0, 100, 128])

Do I miss something or some work is needed? thanks

bsimmo commented 7 years ago

I believe the characters come from a picture file (.PNG). If it's not in there, then you cannot display it. (See some other open problems).

Probably a problem now the Astro-Pi project is open to more than just the UK.

byackley commented 6 years ago

I'm working on a solution to this. I'll have a pull request up in the next day or two.