[Skip to main content](#vessel-content)

#   How to escape comma when import from CSV?

##

- **[pljuarez](/forum/user/34788-pljuarez "View pljuarez's Profile")**
- [![pljuarez's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34788-pljuarez "View pljuarez's Profile") Topic Author
- [ Offline](/forum/user/34788-pljuarez)

Less More

- Posts: 79
- Thank you received: 3
-
-

12 years 1 day ago -  12 years 1 day ago [\#182105](#182105) by [pljuarez](/forum/user/34788-pljuarez "View pljuarez's Profile")  *[How to escape comma when import from CSV?](/forum/37-import-export-csv-xls/873423-how-to-escape-comma-when-import-from-csv#182105 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.2.3  Hello, we have a book store and we use authors as a categories. We need import authors names into categories and we have a CSV UTF-8 file whith authors names like: parent&#95;category;categories Authors;Surname, Name  Note we need to use &quot;Surname, Name&quot; format but when we import the file, hikashop create a category for Surname and another diferent category with Name. We have created a category manually and we have exported to see the format used by HikaShop. We tried enclosed &quot;Surname, Name&quot; in double quotes like Hikashop do, but when we import problem persists. Atached to this message you can find file we are using to import categories (we use Notepad++ ASCII editor to edit it).  What can I do to escape comma in author's name?  Regards")* was created by *[pljuarez](/forum/user/34788-pljuarez "View pljuarez's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.2.3

Hello, we have a book store and we use authors as a categories. We need import authors names into categories and we have a CSV UTF-8 file whith authors names like:
parent_category;categories
Authors;Surname, Name

Note we need to use "Surname, Name" format but when we import the file, hikashop create a category for Surname and another diferent category with Name.
We have created a category manually and we have exported to see the format used by HikaShop. We tried enclosed "Surname, Name" in double quotes like Hikashop do, but when we import problem persists. Atached to this message you can find file we are using to import categories (we use Notepad++ ASCII editor to edit it).

What can I do to escape comma in author's name?

Regards
*This attachment is hidden for guests.
Please log in or register to see it.*

Last edit: 12 years 1 day ago by [pljuarez](/forum/user/34788-pljuarez "View pljuarez's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzM0MjMtaG93LXRvLWVzY2FwZS1jb21tYS13aGVuLWltcG9ydC1mcm9tLWNzdj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[pljuarez](/forum/user/34788-pljuarez "View pljuarez's Profile")**
- [![pljuarez's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34788-pljuarez "View pljuarez's Profile") Topic Author
- [ Offline](/forum/user/34788-pljuarez)

Less More

- Posts: 79
- Thank you received: 3
-
-

12 years 1 day ago -  12 years 1 day ago [\#182155](#182155) by [pljuarez](/forum/user/34788-pljuarez "View pljuarez's Profile")  Replied by *[pljuarez](/forum/user/34788-pljuarez "View pljuarez's Profile")* on topic *[\[solved\]How to escape comma when import from CSV?](/forum/37-import-export-csv-xls/873423-how-to-escape-comma-when-import-from-csv#182155 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.2.3  Hello, we have a book store and we use authors as a categories. We need import authors names into categories and we have a CSV UTF-8 file whith authors names like: parent&#95;category;categories Authors;Surname, Name  Note we need to use &quot;Surname, Name&quot; format but when we import the file, hikashop create a category for Surname and another diferent category with Name. We have created a category manually and we have exported to see the format used by HikaShop. We tried enclosed &quot;Surname, Name&quot; in double quotes like Hikashop do, but when we import problem persists. Atached to this message you can find file we are using to import categories (we use Notepad++ ASCII editor to edit it).  What can I do to escape comma in author's name?  Regards")*

Hello, after hours of searching, I found a solution to my problem reading a topic called "[ escaping special characters in import csv file](https://hikashop.com/forum/import-export-csv-xls/863964-escaping-special-characters-in-import-csv-file.html)"

Its to simple, use a backslash before comma **\\,**:
"parent_category";"categories"
"category";"Surname\, Name"

this solution avoid the problem.

Regards

Last edit: 12 years 1 day ago by [pljuarez](/forum/user/34788-pljuarez "View pljuarez's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NzM0MjMtaG93LXRvLWVzY2FwZS1jb21tYS13aGVuLWltcG9ydC1mcm9tLWNzdj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.048 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
