csv import & newline character?

  • Posts: 56
  • Thank you received: 2
11 years 7 months ago #96342

Hello

I have a csv where all text fields are enclosed in double quotes. It imports just fine except that any newline (\n) characters within the quotes are ignored by hikashop after import.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 7 months ago #96520

Hi,

Did you try with newlines using the format: "\r\n" ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 56
  • Thank you received: 2
11 years 7 months ago #96541

Thanks for your reply.

I just rewrote the code in our csv builder application to insert "\r\n" instead of "\n" but it made no difference to the end result. Still, I can confirm it looks ok if i open up the text in a texteditor in both "\n" & "\r\n" cases. I just seems hikashop is not picking up the linebreaks.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 7 months ago #96583

Why do you think that Hikashop is not picking up the linebreaks ?
Are you sure that you're not missunderstanding linebreaks in text files and HTML linebreaks ?
The linebreaks in text files won't display on HTML pages since you need to use HTML linebreaks <br/> instead.

Please Log in or Create an account to join the conversation.

  • Posts: 56
  • Thank you received: 2
11 years 7 months ago #96616

That is entirely possible. :whistle:

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum