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 ö -> ö > data = '<a>persönliche bitte</a>' # data from db created with > wysiwyg editor > html = TAG(data) > #after ö -> ? > el_list = html.elements(find=re.compile('persö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

