Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when using Xpath selectors, loses the text encoding #2359

Closed
rmichelena opened this issue May 13, 2024 · 2 comments
Closed

when using Xpath selectors, loses the text encoding #2359

rmichelena opened this issue May 13, 2024 · 2 comments
Assignees
Labels

Comments

@rmichelena
Copy link

I have some pages in which I'm now using Xpath selectors to extract:
//tr[contains(@Class, 'ui-datatable-even') or contains(@Class, 'ui-datatable-odd')]/td[position() > 1 and not(position() > last() - 2)]

before I was using Xpath, the extracted text looked like this, either without filters or with CSS class selectors:
SERVICIO DE SUPERVISIÓN

now it looks like this:
SERVICIO DE SUPERVISI�N

However, the HTML file does not seem to include a "meta" tag... so I guess there was some assumption being made by Changedetection when using no filters or CCS, which is not being made when using Xpath...
seace busqueda.html.txt

@dgtlmoon
Copy link
Owner

its actually because the xpath library we use doesnt support it.. but you can easily convert your xpath to CSS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants