Thanks Fabio
I think I have misunderstood your problem.
If I use the code and data you have supplied then my export looks like:
A,B
1,a
2,b
3,c
Which is exactly what I'd expect
If I change the export by checking the check box "Always quote text" on the Download tab, then I get:
"A","B"
"1","a"
"2","b"
"3","c"
Which is also as expected - because csv files have no concept of numeric vs textual data - all the data is essentially text in a csv. I think perhaps "Always quote values" might be a better label for the option, but it behaves as I would expect
As I understand it, you want the values in column B quoted and the values in column A not quoted - this is definitely something you'll need to use the export template to achieve.
If you have the appropriate data types in OpenRefine already (i.e. numbers are converted to numbers, dates to dates, strings are strings) then you might be able to use something like:
Prefix
"A","B"
followed by a new line (i.e. press enter after the column headings)
Row template:
{{jsonize(cells["A"].value)}},{{jsonize(cells["B"].value)}}
Row separator:
<new line> (just select all the content and press enter to put in a new line character
Suffix:
leave empty
I think this will bascially work BUT note that json comments any quotes in the values like this:
\"
and in a csv it is more common to use double quotes
""
So if your project is like
A,B
1,some text which includes "a quote"
2,b
3,c
Then the export template I've described above would output
"A","B"
1,"some text which includes \"a quote\""
2,"b"
3,"c"
but a more traditional csv might be like:
"A","B"
1,"some text which includes ""a quote"""
2,"b"
3,"c"
If you want to get the latter you'll need to do some work to handle the quote marks appropriately in the export - which means writing some additional GREL in the export rather than using the 'jsonize' function
Best wishes
Owen