?
avatar amir-armaghan
amir-armaghan
21 Sep 2016

Steps to reproduce the issue

When there is an Article with Persian (my situation) content in it.
In Content -> Articles -> [a Persian Article] -> Versions
Then click on an old version.

Expected result

Expected to see the old version with right encoding.

Actual result

version/history

avatar amir-armaghan amir-armaghan - open - 21 Sep 2016
avatar infograf768
infograf768 - comment - 21 Sep 2016

I do not get this error here:

screen shot 2016-09-21 at 18 14 57

Are you sure the original article is UTF8? Can you attach here a text file containing the text of the original article?

avatar amir-armaghan
amir-armaghan - comment - 21 Sep 2016

Yes, it is UTF-8. I've attached a simple text file in Persian.
temp1.txt
After your comment, I tested more articles and see many of them have this problem, yet some of them seems OK. For example see the following view from One article; older versions are fine but the newer versions aren't:
wpersian2
wpersian3

To be honest, I am not sure when this problem happens, but as I use "Versions" a few times a week, I can confirm that I haven't had this problem in Joomla! 3.6.0 and this happened after updating to Joomla 3.6.2.

If I can provide more information, please tell.

avatar infograf768
infograf768 - comment - 22 Sep 2016

The file you attached contains only 2 lines It is not the original article for which you have issues.
It is badly encoded UTF8 WITH BOM and windows CRLF. Using these 2 lines does not create issues here.
Remark that in your screenshots above the article for which you have no issue has the correct label "Intro Text" while the other has nothing.
It looks to me that the articles you have issues with are copied/paste from an original which is NOT utf8.

avatar infograf768
infograf768 - comment - 22 Sep 2016

BTW, if you have time and use the fa-IR lang pack, I need testers here #12138 as I just remarked with this Issue of yours that the jalali date was not displayed in version history

avatar amir-armaghan
amir-armaghan - comment - 23 Sep 2016

If you have time, I can give you one username& password to check it yourself. I think this problem is not because of not being UTF-8.

I tested this problem in a few joomla 3.6.2 websites. nearly 50% of them have a similar problem and others don't (in my case) . I tried to check differences like PHP version or other settings, but the only difference that came to my mind is that the problem is in websites which are older. I mean those were originally 3.2 (at least) and then they are updated to newer versions, while others are updated from earlier versions. Maybe it is not the cause, but just wanted to notice.

Note: Typing in Persian or Copy&Paste didn't make any difference.
Note: In the source of troubled page the first lines are cut; it doesn't have:
<!DOCTYPE html>
<html lang="en-gb" dir="ltr">
<head>
...
<h3>

Just starts from <h3>.

avatar infograf768
infograf768 - comment - 23 Sep 2016

OK, Please send a mail to me through my forum account:
http://forum.joomla.org/memberlist.php?mode=viewprofile&u=14

I will need access to your db too.
BTW, first please check collation of your db and tables.

avatar infograf768
infograf768 - comment - 24 Sep 2016

I got the same result as you did on your site until I modified the view in the browser to use Unicode.
screen shot 2016-09-24 at 11 43 12

screen shot 2016-09-24 at 12 08 43

This can normally be solved also by using in the .htaccess the line:
AddDefaultCharset UTF-8, but it looks you have not implemented .htaccess on that site.

avatar infograf768
infograf768 - comment - 24 Sep 2016

It looks like the http header sent by your Apache are wrong:
screen shot 2016-09-24 at 12 23 34

This is what I get here for my test site:
screen shot 2016-09-24 at 12 24 31

So, basically, I think this is not a Joomla issue

avatar amir-armaghan
amir-armaghan - comment - 24 Sep 2016

Thanks for your test.
Actually if you look the source of this page, you will see there is no header for this page and as I mentioned before it is cropped. It should be start by <html> tag but starts from <h3> tag and ignores previews lines.

avatar infograf768
infograf768 - comment - 24 Sep 2016

Not really. One should look at the generated source, not at source.
Here it gives:
screen shot 2016-09-24 at 12 35 36

avatar amir-armaghan
amir-armaghan - comment - 24 Sep 2016

Sorry I didn't get your point exactly. I mean in troubled page there are some missing lines.
please take a look at my page:
wr-pere2
in comparison to yours, there is no metadata or script here.
pree

avatar infograf768
infograf768 - comment - 25 Sep 2016

I can see only one possible issue: your LiteSpeed V6.9 server.

avatar brianteeman
brianteeman - comment - 10 Oct 2016

I am closing this at this time at it is not a core joomla bug but a server configuration issue


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12117.

avatar brianteeman brianteeman - close - 10 Oct 2016
avatar brianteeman brianteeman - change - 10 Oct 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-10-10 17:46:03
Closed_By brianteeman

Add a Comment

Login with GitHub to post a comment