You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment I am getting incorrect encoding for german characters like "ä, ü etc.". I don't really know if this is a JSDom problem. For the rendering I am using UTF-8 encoding.
The text was updated successfully, but these errors were encountered:
Where do you get these characters? There's a module out there that converts strings of various charsets but couldn't find it right now. Try searching for it and let me know how it goes.
In the screenshot you can find another error happening in the jquery selection process. I have tried the exact same function manually on the google page from the firebug console which gave me the correct array of result items. When doing this one on the server the properties in the first result item are holding all the values from the other items as well. I don't really get why. I would guess that the virtually rendered DOM is not quite correct which makes jQuerys find() method to find the other elements as well. (which shouldn't happen since it only searches for the descendants of the selected element)
Dunno, maybe some weird jsdom behaviour. Maybe try .children('a.l').first() instead of .find('a.l'). Also try changing the meta charset to something else for the umlauts?
Thank you for this nice little scrapping wrapper.
At the moment I am getting incorrect encoding for german characters like "ä, ü etc.". I don't really know if this is a JSDom problem. For the rendering I am using UTF-8 encoding.
The text was updated successfully, but these errors were encountered: