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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 115
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 91
  • Total: 92
  • @rjen

Users editing articles and specieal char like: Å Ä Ö

Started by spiritworld, March 23, 2008, 07:01:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

spiritworld

Link to my site: http://spiritworld.se
SMF version: 1.1.4
TP version: v0.9.8
Theme name and version: Our own
Mods installed: Not applicable
Related Error messages: None


Hi all

There is a problem that Ã...Ã,,Ö characters displays incorrectly when a user modifies their articles after it has been approved.

When an administrator approves/changes/edits and article then everything is fine.  But if a user changes he's own article then all the "Ã..., Ã,,, Ö" characters become "?, ?, ?"

Should mention that in the wysiwyg-editor everything displays OK and that the problem only arise on the "index.php?page=..."

I would believe that this problem is related to this topic, that the body or intro gets sanitized when a user edits an article but not when an administrator submits.

Hopefully there is a solution to keep our Swedish Ã... Ã,, Ö characters intact even if it is a member who modifies an article? 

Thanks for your help!


G6Cad

Språksträngarna ska inte bli olika även om det är en editering av en artikel.

Check so you have the correct language files added and that they have the same encoding. What you can try is set the forum to use Swedish and not Swedish utf8 or vice versa .
Other then that i dont know as i havent seen this error or issue before.

spiritworld

Ok thanks, I'll try that if you still think it's worth a try after this (although there are UTF-8 on all Scandinavian languages installed):

I have submitted two articles. The first by "admin"
http://spiritworld.se/index.php?page=23
It's been submitted and then re-saved by admin and it looks fine.

The second by a user:
http://spiritworld.se/index.php?page=24
It's been submitted, then accepted and saved by admin and then re-saved by the user and thats when the weird characters starts to appear.  ???

The only changes I've made to TPortalAdmin.php is on line 450 but this is unrelated to this problem.  :-\

if($_POST['tp_article_category'] != ''){
     $artc=$_POST['tp_article_category'];
}else{
    $artc='0';
}
// $artc=$_POST['tp_article_category'];
   $artf=$_POST['tp_article_frontpage'];
    $artframe='theme';
    $artoptions = 'date,title,author,linktree,top,cblock,rblock,comments,views,commentallow,commentupshrink';
// $artoptions = 'date,title,author,linktree,top,cblock,rblock,lblock,views,rating,ratingallow';


Thank for your help!

G6Cad

Did you try and change it to Swedish only and not Swedish utf8 ?

spiritworld

Sorry not yet. Do you mean to substitute all utf-8 language files to non-utf?

Also I checked the database:
This is whats gets saved in the database (ååå äää ööö):

By User:
ååå äää ööö

By "Admin"
ååå äää ööö

What's get saved through an admin account displays correctly.  :o

G6Cad

No, i mean you change the language settings for the entire forum to Swedish only, and not Swedish utf8

Admin/Settings/ change language to Swedish and not Swedish utf8

I think the issues you have are something with your SQL but im not sure. Tested the language on my own server and test site and it saves as it should both as admin and regular member in Both utf8 and non utf languages, i tested in Swedish and English  both utf8 and regular and nothing wrong for me.

But test to change the language to a non utf8 and try and edit the article again.

This website is proudly hosted on Crocweb Cloud Website Hosting.