
Originally Posted by
mc12345678
Been pondering this for a few days. Curious, what happens if you were to add more text before the first ##? I hadn't found anything that considered ## to be an escape sequence. If it still imports only to that point then probably would want to change the ## to something else either before import or in the process of importing. I seem to recall that recently some discussion was had about how/where to code for replacement of characters. Also, be sure to review the csv that is used to import and verify that the text is not cut off in there when saving your csv. If the first suggested test results in being cutoff then there is a variable associated with that field that limits the length of text, if it is not cutoff then there is something that considers ## as an end of the text.
Just making a comment on this just in case someone is looking to manipulate the characters on there own. On the easypopulate_import.php file around lines 550-560 you can modify the content in there to manipulate characters and anything else from the items description that you want. The code below that I've added to those lines creates it to where it replaces most characters, including white space and Microsoft Characters which were my problem:
Code:
if (isset($filelayout['v_products_description_'.$l_id ])) { // do for each language in our upload file if exist
// utf-8 conversion of smart-quotes, em-dash, en-dash, and ellipsis
$v_products_description[$l_id] = ep_4_curly_quotes($items[$filelayout['v_products_description_'.$l_id]]);
if ($ep_supported_mods['psd'] == true) { // if short descriptions exist
$v_products_short_desc[$l_id] = ep_4_curly_quotes($items[$filelayout['v_products_short_desc_'.$l_id]]);
}
// utf-8 conversion on funky characters ------------ [ADDED 8/23 jmadrigal] ----------------------------
$v_products_description[$l_id] = str_replace("’", "'", $v_products_description[$l_id]);
$v_products_description[$l_id] = str_replace("’", "'", $v_products_description[$l_id]);
$v_products_description[$l_id] = htmlentities(trim($v_products_description[$l_id]), ENT_QUOTES);
}
For the Microsoft Character problem I modified the ep_4_curly function in easypopulaet_4_functions.php. Code Is below:
Code:
// jamadri - Fixes Microsoft Characters Issue
$clean_text = str_replace(
array(chr(145), chr(146), chr(147), chr(148), chr(150), chr(151), chr(133)),
array("'", "'", '"', '"', '-', '--', '...'),
$clean_text);
Bookmarks