KoljaWindeler / ics

Integration that displays the next event of an ics link (support reoccuring events)
51 stars 12 forks source link

Special Characters are being removed #18

Open vbtrek opened 3 years ago

vbtrek commented 3 years ago

Hi, I have noticed that special characters are being stripped from the Description, so my calendar appointment is "Betws-y-Coed (Caravan Holiday)" this comes through as a description of "BetwsyCoed Caravan Holiday". Is there anything that can be done to stop this?

Thanks

andreasbrett commented 3 years ago

Same with umlauts (ä, ö, ü etc) that are converted to "something". Example: "wöchentliche Leerung" => "wuchentliche Leerung"

vbtrek commented 3 years ago

It looks like the issue is caused by the fix_text function in sensor.py. If I comment out the s = ''.join line then all is good for me. I'm not sure what the reason behind this method is. @andreasbrett there is also specific code in this method to replace umlauts.

KoljaWindeler commented 3 years ago

Hi, I had lots of issues with special chars and never figured it out. If you find a solution please send a pull request

KoljaWindeler commented 3 years ago

Ach ich glaube ich erinnere mich. Utf8 kodierte Umlaute wurden von HA fehlerhaft angezeigt.. glaube ich :D

GLehnhoff commented 3 years ago

Yes, not only German "Umlaute" will not be shown correctly, I also have the challenge that I would like to have the name of the day in German language. How is this possible?

KoljaWindeler commented 3 years ago

https://community.home-assistant.io/t/ics-custom-component-to-read-online-stored-calendars/183021/15?u=jkw