Problem with displaying accents | WordPress.org

[ad_1]

Hi, first of all thanks for the plugin, it is very useful.

I have a problem, I have a field “Provincia” that I created with this code to get the value of $state_name_full

add_filter(‘woe_get_order_value_customer_details’, function ($value, $order, $fieldname) {

$country_states = WC()->countries->get_states( $order->get_billing_country() );
$state_name_full = $country_states[ $order->get_billing_state() ];

$value = ‘Provincia: ‘ . $state_name_full. “\n”;
return $value;
}, 10, 3);

When exporting it, the value is displayed correctly except when it has accents, which is displayed like this:
https://i.imgur.com/jXK1JgZ.png (the word is Cádiz).

How could I correct it? the type of file I am exporting is .xlsx

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer