jDownloadsownloads.com

Advertisement
Advertisement:

Author Topic: Shorting charachter UTF-8 Problem or something  (Read 3944 times)

0 Members and 1 Guest are viewing this topic.

Offline eduserver

  • Newbie
  • *
  • Posts: 18
Shorting charachter UTF-8 Problem or something
« on: 09.02.2014 22:33:38 »
Hi,

There is a problem with shorting charachters. How can i change this code below to recognise Some Turkish chars? (Note: Latest Files module)


  // short the file title?
            if ($sum_char > 0){
            $gesamt = strlen($files[$i]->file_title) + strlen($files[$i]->release) + strlen($short_version) +1;
            if ($gesamt > $sum_char){
               $files[$i]->file_title = JString::substr($files[$i]->file_title, 0, $sum_char).$short_char;
               $files[$i]->release = '';
            }    
         }
« Last Edit: 09.02.2014 22:36:56 by eduserver »

Offline Arno

  • Administrator
  • ***
  • Posts: 12.110
    • jDownloads.com
Re: Shorting charachter UTF-8 Problem or something
« Reply #1 on: 11.02.2014 15:00:36 »
Sorry but I have no knowledge about the Turkish language...
So perhaps must you post this problem in a turkish Joomla forum
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

 

Advertisement