×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Some characters looks like at mod_comments

Some characters looks like at mod_comments 15 years 9 months ago #3068

  • gxenakis
  • gxenakis's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
I know now, computers doen't like Greek characters! But I am greek and I have to live with that.

When I use the mod_comments, some characters appears like boxed <?>. This happens only with the last character. Take a look at the picture


Some characters looks like at mod_comments 15 years 9 months ago #3069

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hm, yea. That is possible with 3.26 - we were using the wrong function for the max size of a word.
Try it with this utils.php (place it in components/components/com_comment/joscomment

backup the old one and place this one in place.

Or find the function setMaxLength and replace it with this one:
    function setMaxLength($text, $_maxlength_text)
    {
        if (($_maxlength_text != -1) && (mb_strlen($text) > $_maxlength_text))
            $text = mb_substr($text, 0, $_maxlength_text-3) . '...';
        return $text;
    }
utils-bcbd0720a73e8965da8919375932cca2.zip

Some characters looks like at mod_comments 15 years 9 months ago #3070

  • gxenakis
  • gxenakis's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
first of all thank you so much!

At first I replace the file with the one you provide me, chars looks perfect but it didn't display the date :dry:

Then I replace only the function following your instrunctions, and it is just perfect now!!!

thank you very much!!!

Some characters looks like at mod_comments 15 years 9 months ago #3071

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ah, sorry! The date was not displayed because of that here:
compojoom.com/forum.html?func=view&catid=10&id=3044

you had to change the format of the date, but it doesn't matter now.

If your site is now ready and working you can make a banner and advertise here :)
compojoom.com/advertise.html

Some characters looks like at mod_comments 15 years 8 months ago #3389

  • gxenakis
  • gxenakis's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
even though i have changed the code as you said, the problem still occurs sometimes



any ideas?

Some characters looks like at mod_comments 15 years 8 months ago #3390

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Try this one. It should finally work! utils-fc25f49c036f150dc1345804d7614a41.zip

Some characters looks like at mod_comments 15 years 8 months ago #3391

  • gxenakis
  • gxenakis's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
no still the same

Some characters looks like at mod_comments 15 years 8 months ago #3393

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Would you post the string in the demo section and then give me a link to it. I want to test it on my dev. environment.

Some characters looks like at mod_comments 15 years 8 months ago #3394

  • gxenakis
  • gxenakis's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
I make a comment at Welcome to the Frontpage, number of post 188 from 87.202.196.xxx

here is the link demo.compojoom.com/index.php?option=com_...s&Itemid=50#JOSC_TOP


Thank you so much for your support

Some characters looks like at mod_comments 15 years 8 months ago #3395

  • Walter Kreutzner
  • Walter Kreutzner's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Daniel Dimitrov wrote:

Would you post the string in the demo section and then give me a link to it. I want to test it on my dev. environment.


Hi Daniel,
I have a similar problem using Thai characters. I tried utils-fc25f49c036f150dc1345804d7614a41.zip already but it does not fix the problem.
Here is the text again I also posted in the demo section
This is what is stored (and showed) in the comment component:

เป็นชุดที่ดูทันส� �ัยมาเลยย
ต้องไปหาซื้อที่ไ� �น
กรุณาบอกรายละเอี�
�ดให้ด้วย
ขอบคุณมา ก

Originally typing IS:
เป็นชุดทีดูทันสมัยมากเลยยต้องไปหาซื้อที่ไหน กรุณาบอกรายละเอียดให้ด้วย
ขอบคุณมาก

One more hint:
I mean it look much better on YOUR demo then on the original site. However, there is still a mistake on YOUR site. When the system did a word wrap while typing the Thai text still looked good BEFORE pressing send. After sending, the wrap at "ละเอ
ียดให ้ด้วย" is wrong. See the ี character on the อี is missing... Well, I need another lesson in Thai.

I hope you can help.
Kind regards from Bangkok
Walter

P.S.: Here is the link to demo section: demo.compojoom.com/index.php?option=com_...ws&Itemid=50#josc439

Some characters looks like at mod_comments 15 years 8 months ago #3396

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey guys! I'm a little confused - please excuse me. I neither speak greek, neither thai :) . Cyrillic is ok, but ... :)

Can you please store the text you want to post on the demo site in a utf-8 text file and upload it here. This way I will have the possibility to insert in my developer version and compare it with the original to finally find out what the ... is not working. Thank you!

Some characters looks like at mod_comments 15 years 8 months ago #3400

  • gxenakis
  • gxenakis's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
I upload the txt here
www.gxenakis.com/test/greek.txt

I hope that will help!

Some characters looks like at mod_comments 15 years 8 months ago #3401

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
With my dev version everything seems fine

Some characters looks like at mod_comments 15 years 8 months ago #3402

  • gxenakis
  • gxenakis's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Could you try to write greek ( copy paste of course ) at the:
name of the one who makes the comment
title of the article
title of the comment

The issue appears to me at the title of the article

Some characters looks like at mod_comments 15 years 8 months ago #3403

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
It is also fine for me

Some characters looks like at mod_comments 15 years 8 months ago #3404

  • Walter Kreutzner
  • Walter Kreutzner's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Hello Daniel,

thank you for looking into it. And, even better, SO fast.

Attached is the Thai-utf-8 file.

Well, I am confused with Thai all the time and I understand you are totally confused. I at least can read it. Writing is different. But with the sample I attached we cover most of the Thai special characters.

Thanks for your help again.

Kind regards

Walter

Thai_utf_8.txt

Some characters looks like at mod_comments 15 years 8 months ago #3405

  • gxenakis
  • gxenakis's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
can you try withe new txt? greek2.txt

Some characters looks like at mod_comments 15 years 8 months ago #3406

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Walter. The file you provided is not saved in UTF-8 so the only thing I see is ßß0ßßß???0ß0ßßßß

Some characters looks like at mod_comments 15 years 8 months ago #3407

  • Walter Kreutzner
  • Walter Kreutzner's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Hi Daniel,

works for me ?!? (well, on my machine with Thai installed)
Anyway, a new try (and I checked the file on a German XP no Thai installed)

Regards

Walter

Some characters looks like at mod_comments 15 years 8 months ago #3408

  • Walter Kreutzner
  • Walter Kreutzner's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
I attached a .rtf but the system did not allow me to upload.

Well, HOW to save a .txt utf-8 with WinXP? Anyway, here the .rtf in a .zip

Thai_utf_8.zip
  • Page:
  • 1
  • 2
Time to create page: 0.153 seconds