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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,236
  • Total Topics: 21,353
  • Online today: 340
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 240
  • Total: 240

Special UTF8 characters not showing correctly in articles (swedish and italian)

Started by spidernik84, February 25, 2011, 03:54:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

spidernik84

Link to my site: http://www.versonord.net
SMF version: 1.1.13
TP version: 1.0 RC1
Default Forum Language: Italian-UTF8
Theme name and version: overview light 1111
Browser Name and Version: Opera 11
Mods installed:
SMF 1.0.21 / 1.1.13 Update - 1.0
Country Flags - 1.1.2
Tapatalk SMF Plugin - 1.1.0
TinyPortal - 1.102
Highslide Image Viewer - 1.6
Related Error messages: none

Hello, as stated in the subject I'm having some odd problems with the above configuration.
Versonord.net is an Italian website regarding northern countries, therefore we're writing articles with a lot of special characters like the ones from the Italian and Swedish alphabets (ì,à,è,å,ä).

While the forum can correctly display all characters without trouble, the portal seems to have some trouble after saving each BBC or HTML type article. Sometimes the articles get even truncated, but most of the times the screwed special fonts are the only issue.
The problem persists even switching the default website language to english-utf8.

I browsed and searched the forum but none of the topics seemed to resemble this problem. The most notable one was considered fixed in 2009!

Thanks for your help :).

IchBin

There are a couple of bugs in the tracker here on this issue I believe.
http://www.tinyportal.net/index.php?action=projects

I think most of them stem from not using the proper character set when decoding the characters from the database. I have lots of work to do to fix these issues. I hope you can wait until then. :)

spidernik84

Hi, thank you for the answer. Of course I can wait :) Wish I could help, but I'm not a programmer, unfortunately :(.
Could there be any temporary workaround?
Thank you for your support and great work.

IchBin

If you are only looking for an articles fix, I could possibly figure that one out for you. Otherwise, hunting down all the different places this needs to be fixed is going to take some time.

spidernik84

No, there would be many articles. I guess I could write the article without special chars, and then swap them in the db via phpmyadmin. Non exactly user friendly, but since we're not adding many articles per week that's feasible.
Thank you anyway, I'll track the buglist.

ZarPrime

spidernik84,

I'm not really a programmer either but, in case anyone else sees this topic, this issue seems to have only manifested itself in TinyPortal when the user is using it with SMF 1.1.x, as you are.  Users with an SMF 2.0/TP 1.0 RC1 site do not seem to be affected by this issue.

ZarPrime

IchBin

I'll have to do more testing then, thanks Zar.

spidernik84,

I was referring to having the problem in more than one place. Articles is a single point of failure. If I look at the code, it is likely only one place that needs to have the code adjusted to account for the character conversion problem.

ZarPrime

Well, I can't say for sure that all works fine with an SMF 2.0 Forum since I don't have a utf8 Forum.  I'm just going on what Agridoc has posted on the Team Board.

spidernik84

Quote from: IchBin on February 26, 2011, 05:04:43 AM
If you are only looking for an articles fix, I could possibly figure that one out for you. Otherwise, hunting down all the different places this needs to be fixed is going to take some time.
Sorry, I totally misinterpreted your post. Yes, I confirm, my interest is mainly to make articles work for now, nothing else. We're not using the shoutbox and the interaction is limited on the webpage (and, quite amazingly, I just discovered that the article comments do not present this problem at all!).

Thank you IchBin :)

spidernik84

Hi, sorry for the delay.
I remember there was a full discussion here regarding the problem, with a solution posted by IchBin, but I see some messages have disappeared!

You wrote I wasn't clear in describing the problem, and I'm sorry. I tried to be as complete as possibile, that's why I provided screenshots also in the deleted messages. My fault for being unclear. I'm writing a detailed description of how to reproduce the problem AFTER the fix provided by IchBin was applied to the code:

1. start creating a new BBC article
2. write the article title and body (the body MUST contain a special char, for example "à","ò","ä").
3. Save the article. As you will see, special characters will be visible without any problem
4. approve and publish the article
5. go to first-page view (your portal's homepage)

The article body will be completely empty.
Body text used:


test

àòù

test





This website is proudly hosted on Crocweb Cloud Website Hosting.