Thanks Twenta!
I will have to go do some testing. I will be the first to admit that I didn’t test for UTF-8.
Is that for ingredients or does it also happen in the directions and notes? I am trying to figure out if it is a database thing or something in the coding.
I want to create a better system for the recipe templates and language. That might be a bit of work though. If you want to change it around, go into the file recipe-schema-client.php in the /wp-content/plugins/recipe-schema/inc/ directory and look at line 247. You can change the time there. I will work on a better system though.
Thread Starter
twenta
(@twenta)
Hi,
the transformation seems to take place in both cases (ingredients/directions) and takes place on insert into the db. All collations are utf8_general_ci btw.
There must be some step where utf-8 is transformed into windows-1252 or similar…
Thanks
Thanks, I think I got a fix. I was doing some processing of the HTML in the Ingredients and Directions lists and I need to trick it into using UTF8.
The changes are in the main recipe-schema.php files. I will make these changes in the code and get them upload soon.
On line 927, it should be:
$dom->loadHTML(‘<?xml encoding=”UTF-8″>’ . $ingredients );
On Line 959, it should be:
$dom->loadHTML(‘<?xml encoding=”UTF-8″>’ . $directions );
The latest update should fix things, let me know if it doesn’t. Thanks for catching this!
Thread Starter
twenta
(@twenta)
Thanks for the fix. I get confirm it works now 🙂