WordPress at Your Fingertips
function is not described

WC_Tax_Rate_Importer::format_data_from_csv() public WC 1.0

UTF-8 encode the data if $enc value isn't UTF-8.

{} It's a method of the class: WC_Tax_Rate_Importer{}

No Hooks.

Return

String.

Usage

$WC_Tax_Rate_Importer = new WC_Tax_Rate_Importer();
$WC_Tax_Rate_Importer->format_data_from_csv( $data, $enc );
$data(mixed) (required)
Data.
$enc(string) (required)
Encoding.

Code of WC_Tax_Rate_Importer::format_data_from_csv() WC 5.9.0

public function format_data_from_csv( $data, $enc ) {
	return ( 'UTF-8' === $enc ) ? $data : utf8_encode( $data );
}