How do i use commas in .csv driven data string fields?

I’m driving some data by using a .csv file and the FTableRowBase struct as described here:
https://docs.unrealengine.com/latest/INT/Programming/Gameplay/DataDriven/index.html

Unfortunately, it seems that if I have a string field as one of the members of my struct, I can’t have a string that has any commas in it. So for example, the field in the .csv file could look like this (with the quotation marks): “This is, my string”

And when importing that file as a data table asset, the internal parser doesn’t seem to respect the quotation marks as boundaries of an enclosed string - the comma within the string is treated as a field separator.

Is this indeed a bug? If not, how would I go about using a string field with commas inside it?

I’m having the same problem with 4.3.1

The answer can be found in String.cpp:546

In FString::ParseIntoArray(), FCString::Strstr(Start,pchDelim) indiscriminately uses the delimiter “,” to gobble the next comma, regardless of its position inside or outside a string delimited by double-quotes.

Hi epark,

Thanks for reporting this issue. DrHobo, thanks for narrowing it down even further. I’ve reported it internally.

Regards,

Jonathan

Is there any chance it will be fixed in 4.5? It’s pretty important for me as well. Or is there any workaround? I need to have periods and commas in a single field containing dialogue line.

I can’t confirm whether it will be fixed in time for 4.5. I’ve entered it into our system (as TTP#343109) and we raised its priority last week. It’s been assigned to someone, but I don’t know anything more than that.

Hi there! Just to let you know that we’ve just put in a fix for this issue, so you should be able to import these sorts of things from 4.5+.