TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

December 11, 2024, 01:33:18 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,443
  • Total Topics: 21,252
  • Online today: 101
  • Online ever: 6,457 (November 30, 2024, 02:40:09 PM)
Users Online
  • Users: 0
  • Guests: 79
  • Total: 79

Mini calendar SMF2.1 - does not support unicode letters?

Started by PoML, July 16, 2023, 10:57:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PoML

I have used this updated version of the mini-calendar. Even though it miss the color-coding of the original, it is good to be able to see a calendar on the front page with link to the regular calendar.

However - it somehow strips a bit off the unicode letters ÆØÅ (in the example U+000F8) so that Norwegian days in the weekend has a question mark instead of the ø that should be there.
See the difference between the built-in and block code calendar here:

Ideally, I would love a block that simply added the built-in calendar to the front page, but where a click would bring up any events rather than create a new.

McFly

Quote from: PoML on July 16, 2023, 10:57:09 PM... Even though it miss the color-coding of the original, ...

To display the calendar block also in the style of the current theme, the calendar.css must also be loaded inside the block. This is otherwise only loaded when the calendar page is called. After that the table, its rows and columns would have to be provided with the appropriate classes.

Display problems of Unicode characters are mostly due to a non-uniform sequence of storing and reading the character to be displayed (utf8/ansi). If the texts with the characters are stored in a file, saving the file in utf8 format often helps.
"I'm not going to censor myself to comfort your ignorance."

Testsites (may be online or not ;-) )
ElkArte 1.1.x & TP on Apache2.4.48, PHP 8.1.2 FPM/FastCGI, MariaDB 10.5.12