You will need to encode utff8 and I am not sure how to encode utf8 in
regex.

On Jun 7, 11:46 am, pubu <[email protected]> wrote:
> Hi,
> i am trying to search inside html data, which i get from DB(sqllite).
>
> Everythink works well, but if i try to search for 'äöü', i get no
> match.
>
>    #before ö -> &ouml;
>     data = '<a>pers&ouml;nliche bitte</a>' # data from db created with
> wysiwyg editor
>     html = TAG(data)
>     #after  &ouml; -> ?
>     el_list = html.elements(find=re.compile('pers&ouml;nliche',
> re.IGNORECASE)) or html.elements(find=re.compile('persönliche',
> re.IGNORECASE))
>
> Can anybody tell me what i am doing wrong?
>
> Thanks in advance,
> paul

Reply via email to