KoljaWindeler / ics

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

Parse ICS file garbled in Chinese. #14

Open Resurrection2981 opened 3 years ago

Resurrection2981 commented 3 years ago

Screenshot_20200921-102351093

KoljaWindeler commented 3 years ago

:) OK ... Can you send me that is file?

Resurrection2981 commented 3 years ago

:) OK ... Can you send me that is file?

Sure. Would you tell me you email address?

KoljaWindeler commented 3 years ago

you can attach files right here, or if you'd like to keep the file somewhat private please send it to kolja.windeler@gmail.com

Resurrection2981 commented 3 years ago

you can attach files right here, or if you'd like to keep the file somewhat private please send it to kolja.windeler@gmail.com

Sent.

KoljaWindeler commented 3 years ago

Hi, your file indeed is written in some chinese chars .. that has nothing todo with the integration. Open the file in a text editor like notepad and you'll see it yourself. The hex code of the event summary is e8 af ad e9 9f b3 e4 bf a1 e5 8f b7 e5 a4 84 e7 90 86 Have a look at https://www.torsten-horn.de/techdocs/ascii.htm .. everything above 7F is out of normal latin letters .. I guess this must have something to do with the way you've exported the file .. Kolja

Resurrection2981 commented 3 years ago

嗨,您的文件确实是用一些中文字符写的..与集成无关。 在文本编辑器(如记事本)中打开文件,您将自己看到它。 事件摘要的十六进制代码为e8 af ad e9 9f b3 e4 bf a1 e5 8f b7 e5 a4 84 e7 90 86 看看https://www.torsten-horn.de/techdocs/ascii.htm ..一切7F以上是普通的拉丁字母.. 我想这一定与您导出文件的方式有关.. Kolja

I exported this file from an app, then import it to google calendar, google calendar work well. But I tried exported from google calendar, and import into HA again,but still parse garbled... I also tried another custom component: https://github.com/franc6/ics_calendar This one work good in Chinese chart but wrong time, I'm still can't find out why