<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-2"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Cambria;
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Candara;
        panose-1:2 14 5 2 3 3 3 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Besedilo oblačka Znak";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.E-potniSlog17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BesedilooblakaZnak
        {mso-style-name:"Besedilo oblačka Znak";
        mso-style-priority:99;
        mso-style-link:"Besedilo oblačka";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=SL link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I modified plugin by implemented like function. I use python Search function. It work with ASCII but not with UTF-8 character.<o:p></o:p></p><p class=MsoNormal>Can any body help me, because I just begin with python.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This work ASCII, error with UTF-8<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># like<o:p></o:p></p><p class=MsoNormal> elif operator == "like":<o:p></o:p></p><p class=MsoNormal> while (provider.nextFeature(f)):<o:p></o:p></p><p class=MsoNormal> fieldmap=f.attributeMap()<o:p></o:p></p><p class=MsoNormal> if re.search (str (value),fieldmap[col].toString()):<o:p></o:p></p><p class=MsoNormal> selection.append(f.id())<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This not found anything, no error<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># like<o:p></o:p></p><p class=MsoNormal> elif operator == "like":<o:p></o:p></p><p class=MsoNormal> while (provider.nextFeature(f)):<o:p></o:p></p><p class=MsoNormal> fieldmap=f.attributeMap()<o:p></o:p></p><p class=MsoNormal> if re.search (str(self.to_unicode_or_bust(value)),fieldmap[col].toString()):<o:p></o:p></p><p class=MsoNormal> selection.append(f.id())<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span style='font-size:13.0pt;color:#682E30'><img width=121 height=39 id="Slika_x0020_1" src="cid:image001.jpg@01CC02B0.EF3D8DB0" alt="Opis: LogoKomunalaMail.gif"><o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:42.55pt'><b><span style='font-size:12.0pt;font-family:"Cambria","serif";color:gray'><o:p> </o:p></span></b></p><p class=MsoNormal style='margin-left:42.55pt'><b><span style='font-size:12.0pt;font-family:"Cambria","serif";color:gray'> Jože Detečnik<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:42.55pt'><span style='font-size:8.0pt;font-family:"Cambria","serif";color:gray'> vodja informatike<o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:13.0pt;color:#682E30'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-size:8.0pt;font-family:"Candara","sans-serif";color:gray'> JAVNO PODJETJE KOMUNALA SLOVENJ GRADEC d.o.o.<o:p></o:p></span></b></p><p class=MsoNormal style='margin-bottom:3.0pt'><b><span lang=EN-US style='font-size:8.0pt;font-family:"Candara","sans-serif";color:gray'> PAMEČE 177 A, SI-2380 SLOVENJ GRADEC<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Candara","sans-serif";color:gray'> telefon: ++386 (0)2 881-20-25<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Candara","sans-serif";color:gray'> mobi: ++386 (0)41-748-005<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Candara","sans-serif";color:gray'> faks: ++386 (0)2 821-20-40<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>