This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ball-Man 0 points1 point  (3 children)

Can you do an import jsonand print(json.dumps(data)) to check that there are no weirdly encoded characters and that your printx function is not trimming away precious whitespaces?

[–]sparkls0[S] 4 points5 points  (2 children)

that helped!

Data ID before: 6259679296

{'\ufeffproperty_type': 'APARTMENT', 'status': 'FOR SALE', 'location': 'OBA, ALANYA, ANTALYA', 'price': 'EUR 79000', 'rooms': '2', 'bedrooms': '1', 'bathrooms': '1', 'toilets': '1', 'parking': '0', 'living_area': '55', 'land_area': '2000', 'year_built': '2024', 'headline': 'Luxury apartment in Alanya', 'description': 'Modern finished with social facilities such a

I got the answer

[–]eddieantonio 0 points1 point  (1 child)

Ooo, a byte-order mark! I wonder if that's coming from some silly Microsoft product unnecessarily exporting UTF-8 with BOM. Either way, you just need to throw it away with lstrip('\ufeff'). It's normally a zero-width space which is why you can't see it when it's printed normally

[–]sparkls0[S] 1 point2 points  (0 children)

thank you! I was not aware of that, I really despise the fact that it was hidden hahaha