Closed Reuns closed 3 years ago
Can you please provide some example URLs and Screenshots?
You can try to add this url : https://store.playstation.com/fr-fr/product/EP0001-PPSA01870_00-FC6EDSTANDARD000/ And look at this mess ^^
Youtube Videos have the same issue : https://www.youtube.com/watch?v=qc3HBnPanx0
Hope it'll help...
@luke- Fixed in PR https://github.com/humhub/linkpreview/pull/7:
We already fixed similar issue here https://github.com/humhub/linkpreview-issues/issues/16, there https://github.com/humhub/linkpreview/pull/4/files#diff-b1d65a17c66062f6504e240ef9ec053b8ed6dad76fc3b78390246efa7f546aadR89 I added htmlentities()
and it worked well for these cases, but on current it didn't work, so I changed to html_entity_decode()
because the current fr case has a &
in the <title>FAR CRY®6 - Édition standard PS4 & PS5</title>
.
Previous cz samples work well with new PR too:
@yurabakhtin Thanks!
@Reuns Version 1.15.6 should fixes the problem
That's perfect ! Thank you.
Hi ! Issue is still here for youtube video Example with : https://www.youtube.com/watch?v=qc3HBnPanx0
As a french user, there are a lot of links to french websites.
Preview appears like this (minus the space ... otherwise github translate the accent correctly)
instead of
All accent and special chars are incorrect.
I guess it's a UTF-8 encoding issue...