Title: Encoding issue in dropdown.
Last modified: July 11, 2024

---

# Encoding issue in dropdown.

 *  Resolved [mrsmurf](https://wordpress.org/support/users/mrsmurf/)
 * (@mrsmurf)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/encoding-issue-in-dropdown/)
 * I do not know in which version this problem started, but I got a call from a 
   customer telling me that it was not possible to order product variations in my
   webshop that had non ascii chars in the version name. It turned out when the 
   select dropdown is reconstructed with the DOMDocument class it messes up the 
   variation name encoding.
   The fix for this issue if someone else has it is to 
   edit includes/Frontend/Woo_Config.php and on line 248 change from$dom->loadHTML(
   $old_html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);To$dom->loadHTML(mb_convert_encoding(
   $old_html, ‘HTML-ENTITIES’, ‘UTF-8’), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
   It would be nice if you would fix this issue in the next version you release.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Tarek Aziz](https://wordpress.org/support/users/tarekht/)
 * (@tarekht)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/encoding-issue-in-dropdown/#post-17883354)
 * Hi [@mrsmurf](https://wordpress.org/support/users/mrsmurf/),
 * Thank you very much for informing us about the issue and sharing a possible fix
   to get it resolved.
 * It’s my pleasure to inform you that our team has already taken immediate action
   to fix the issue and released an update to the plugin. Could you please try the
   latest version?
 * We’d greatly appreciate it if you could share your valuable thoughts on this 
   🙂
 * Wishing you a wonderful day ahead!
 *  Thread Starter [mrsmurf](https://wordpress.org/support/users/mrsmurf/)
 * (@mrsmurf)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/encoding-issue-in-dropdown/#post-17884073)
 * Yes, the issue seems to be fixed with the latest version.
 *  [Tarek Aziz](https://wordpress.org/support/users/tarekht/)
 * (@tarekht)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/encoding-issue-in-dropdown/#post-17888215)
 * Thanks for the update!
 * We are glad to hear that the latest version has fixed the issue. If you need 
   any further assistance, please don’t hesitate to reach out. Our support team 
   is always here to help.
 * Wishing you all the best!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Encoding issue in dropdown.’ is closed to new replies.

 * ![](https://ps.w.org/swatchly/assets/icon-256x256.png?rev=2893238)
 * [Swatchly – Product Variation Swatches for WooCommerce](https://wordpress.org/plugins/swatchly/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/swatchly/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/swatchly/)
 * [Active Topics](https://wordpress.org/support/plugin/swatchly/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/swatchly/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/swatchly/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tarek Aziz](https://wordpress.org/support/users/tarekht/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/encoding-issue-in-dropdown/#post-17888215)
 * Status: resolved