Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

No links on values in multi-byte utf-8 languages 04 Mar 2013 21:35 #6904

Hi,

When the field values are entirely in Hebrew there are no links in grid fields. The links work OK if the value is in English.
I tried other languages and found that the same problem exists with values entirely with diacritic Latin characters such as
ää

If at least one character anywhere in the field is in lower ASCII then the link appears even if the rest of the characters are multi-byte utf-8 characters. i.e.
äbä

I kindly request a workaround for this.

Thanks,
David

Please Log in or Create an account to join the conversation.

Last edit: by davidgal.

Re: No links on values in multi-byte utf-8 languages 04 Mar 2013 23:17 #6905

I think I found the problem here in dom/html.php line 241
if ((isset($this->href) || isset($this->target)) && (isset($this->dataValue)) && (basename($this->dataValue) != ""))

The problem seems to be with the basename function. I'm not sure that the intended argument was "datavalue". In any case this function is not considered UTF-8 safe. it appears to strips anything not in lower ASCII in the datavalue so a foreign language string will evaluate to false in the above code.

Please Log in or Create an account to join the conversation.

Last edit: by davidgal.

Re: No links on values in multi-byte utf-8 languages 19 Aug 2013 17:05 #10829

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed.

Better now ?
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.077 seconds

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started