Hammy and Special Characters (FIXED!!!)
-
Hello, just to thank the awesome plugin, that really helps a lot with responsive blogs like mine.
I want to contribute with a small fix. If the Image have special characters in the filename or URL, the plugins breaks the URL by replacing theses special chars with non-unicode characters.
To Fix this, just edit the hammy.php file as described bellow:
FIND THIS 2 LINES:
$doc = new DOMDocument(); $doc->loadHTML( $value );
REPLACE WITH THESE 3 LINES:
$doc = new DOMDocument(); $doc->encoding = 'utf-8'; $doc->loadHTML( utf8_decode( $value ) );
That’s it! Hope next version is corrected.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Hammy and Special Characters (FIXED!!!)’ is closed to new replies.