Do not rely on the marking. There is a loose convention that the marked or striped conductor is negative, and it is honoured often enough to be tempting and violated often enough to destroy equipment.
I have shortened leads from a single batch of identical supplies and found the polarity swapped between units. Whoever assembles the cable is not always the person who decided which side the stripe goes on, and there is no standard that binds them.
The reliable sources of truth, in order:
- The symbol printed on the supply. Almost every adapter has a small diagram showing a circle with a dot and a C shape, indicating whether the centre pin is positive or negative. That tells you what the device expects.
- Measure it. A basic multimeter costs very little and is the correct tool.
- Check the device's own label, which usually repeats the polarity requirement.
The symbol plus a measurement is two independent confirmations, which is what you want before connecting anything you care about.