Voklen / Daily-Diary

An app to create a diary entry every day
GNU General Public License v3.0
49 stars 2 forks source link

Encoding problems #21

Closed wjksiazek closed 11 months ago

wjksiazek commented 1 year ago

The app seems to have problems encoding non-ASCII characters - when I type in Polish characters (used 'Żółć' for tests) it looks ok, but when I close the app and reopen, wrong characters are drawn. The issue is also present for imported notes with Polish characters, encoded with utf-8.

Voklen commented 1 year ago

That's interesting, I've got automated tests with Polish characters and regularly write in different scripts (uczę się polskiego). What device are you on?

wjksiazek commented 1 year ago

I'm on Oppo Find X3 Neo. Also, good luck with your Polish classes :)

ivysrono commented 11 months ago

Same issue for Chinese.

测试

Voklen commented 11 months ago

This is such an interesting issue, I still can't replicate it on any of my devices. What device are you using @ivysrono?

ivysrono commented 11 months ago

Poco X4 GT with LineageOS 20.0.

Test files:

2013-10-10.md

2023-11-11.md

They shoud show 测试1 and 测试2, however, they don't.

Voklen commented 11 months ago

There we go! It turns out it only happened when you change the folder of the entries, this fix should make all current and previous entries display correctly now and will be in v1.4.1. Thank you both for submitting this problem :+1: