Hello,

 

I modified plugin by implemented like function. I use python Search
function. It work with ASCII but not with UTF-8 character.

Can any body help me, because I just begin with python.

 

This work ASCII, error with UTF-8

 

# like

                elif operator == "like":

                  while (provider.nextFeature(f)):

            fieldmap=f.attributeMap()

            if re.search (str (value),fieldmap[col].toString()):

                selection.append(f.id())

 

This not found anything, no error

 

# like

                elif operator == "like":

                  while (provider.nextFeature(f)):

            fieldmap=f.attributeMap()

            if re.search
(str(self.to_unicode_or_bust(value)),fieldmap[col].toString()):

                selection.append(f.id())

 

Thank you.

 

 

Opis: LogoKomunalaMail.gif

 

           Jože Detečnik

                          vodja informatike

 

                 JAVNO PODJETJE KOMUNALA SLOVENJ GRADEC d.o.o.

                 PAMEČE 177 A, SI-2380 SLOVENJ GRADEC

                  telefon:   ++386 (0)2 881-20-25

                  mobi:      ++386 (0)41-748-005

                  faks:        ++386 (0)2 821-20-40

 

<<image001.jpg>>

_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to