Dorico doesn’t flip the stem of the first note in bar 2 although that’s common practice, but the second one is flipped. Then, in the following bar they put Db instead of C#. Is this really normal? I’d say it’s confusing. This example is made with the Dorico String Quartet template.
You have these settings, in Engraving Options > Notes > Stems:
The first note in bar 2 follows an upstem A, so it has an upstem. I’m guessing that the rest then resets things, so the second note has a downstem.
FWIW, I have the first setting changed to always use my default (down).
You have no key signature, so I think Dorico has to guess a little at what spelling you want here. There are some rules for this in Note Input Options > MIDI Input. I don’t know why Dorico would follow two C#'s with a Db; maybe someone else who uses MIDI has an explanation.
You have your ‘automatically respell’ set to ‘from beginning of bar’ and ‘to end of bar.’ If you change these to ‘From previous bar’ and ‘to next bar,’ the D-flat will change automatically to C-sharp. As asherber pointed out, you have no key signature, Dorico is guessing what you want. If that guess is cut off from previous and following bars by your setting, it will almost always select the flat rather than the sharp. In this case, because the phrase is rising, Dorico will prefer a sharp on the first occasion. But since you’ve set it not to look at the previous measure, it just uses its default flat in the next measure. At least that’s how it seems to me. Other more advanced users may have a different explanation.
Sorry, yes, I misworded it. I have not tried the third setting on each line so can’t speak to that, but when the second item is set on each of the two lines, the Db automatically changes to C#.

