chadderuski:
Hey Bro!
Well, now that 1.55 is out I decided to give it a test drive along with your updated EP4 >>NOW IN THE PLUG-INS SECTION - YEAH!<<
Clean install on PHP 5.6.19 (still waiting for cpanel to offer PHP 7 support), and MySQL 5.6.29.
Exported data from live site using my EP 4.0.23: Full, Quantity Breaks, and Attrib files.
I ran into a small problem on importing my full sheet. For some reason category names were not being split on the "^" character.
I had to switch from mb_split() to explode() even though I'm using UTF-8 to get the categories to break properly. The sheet was as exported, so it should have worked as is. It did work with explode() and the sheet imported, but I don't have any funky characters in my data.... hmmm... I think not :P might be some registered and TM characters in there which are MB.
I don't think explode() supports multibyte languages (like russian, etc.), but I'll have to read up on that again.
Anyway, after getting that to work, the quantity breaks and attrib files imported fine.
I'll have to read up on mb_split() again to see what might be going on.
Congrats on all the hard work and additions. Hope all the free support doesn't wear you out :P
-chadderuski
mesnitu:
I'm having the same situation. Portuguese in my case. Already reported in git.
In my case, I did stick to the mb_split('\x5e' used in previous versions.
And also, for what I can see, all is in utf8.
Ah ha... I think I may have the alternate solution to be able to do both things... Use a variable and to use mb_split.. :)
Change line 1112 in admin/easypopulate_4_import.php from:
$categories_names_array[$lang['id']] = mb_split($categories_delimiter, $items[$filelayout['v_categories_name_' . $lang['id']]]);
To:
$categories_names_array[$lang['id']] = mb_split(preg_quote($categories_delimiter), $items[$filelayout['v_categories_name_' . $lang['id']]]);
Let me know if that resolves the problem/issue.. It works correctly on an online sandbox area where the other two solutions also work but the code as is seems to have the problem described... Ie. the online tester seems faithful and looking at how preg_quote modifies the $categories_delimiter variable changing it from \x5e to \x5e, this makes sense especially from the standpoint that when imploding things that a regex is not used, but when a regex is used the proper escapes need to occur. :)
Let me know what the two of you think/find... Nice to have a few independent eyes piping up on things.