• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Gesior] Forum posts + ISO 8591 = death

Daitaian

New Member
Joined
Jul 17, 2016
Messages
11
Reaction score
3
I guess my title wasn't very useful, but I hope it got your attention , so if you are reading this, I've won.. Ok now seriously, to the issue:

Whenever my Gesior AAC tries to open a thread or post that contains an ISO 8591 chararacter it simply doesn't show it at all.

Basically, it doesn't matter if the post has 1000 letters, if a single one of them is a "ç", or a "õ" then it won't show the post at all. ISO 8591 is correctly appearing everywhere else in the website, also, in the database, when the user posts his message, it is correctly saved in the z_forum table containing the ISO letters as god intended, the problem is only when trying to show the post.

As an interesting fact, that made me suspect to narrow down the problem to the forum.php (I guess?): news threads appear correctly on the latestnews.php page, but won't show in the forum.php page, the same as any other post.

I've uploaded a couple pictures to show it to you, here is a thread on the z_forum table in the database containing a "ç", and a screen of its magnificent non-appearance on the forum page.
tWaKfTC.png

l0fXt8W.png


Ayuda me por favor.
 
try to figure out which filters (function calls) are applied when displaying forum post contents, and remove/modify them as necessary
 
Well, I still got no luck fixing this, but I have discovered what "actually" happens to the post when the page tries to display it, it gets entirely replaced by a "<hr>", so it displays that line right beneath the post topic, posts that show normally don't have that line, but still not a single clue why tf this happens.

I've tried changing some functions on the forum.php, I suspect maybe the problem is in this particular function .htmlspecialchars($thread_name['post_topic']) (from my very limited interpretation of code, this is where the post is called to be displayed, right??). But I'm no PHP programmer and everytime I modify it the whole page gets corrupted.

Well, here is my original forum.php if there is anyone who can read it and find the problem/solution.

http://pastebin.com/Skdbx21u

Also, perhaps the problem could be solved if there was a function to convert these special characters in the post message when it saves them on the database, so instead of saving the "ç" it would actually save "&ccedil;", thus, displaying it correctly afterwards.

Any help? I am just about offering to pay someone for the service of fixing this..
 
Last edited:
Back
Top