Firefly wrote:How you know it can be remplaced by a BC857 or BC858?
I see no reason why not, if the circuit above is correct. Polarity, voltage and current ratings fit, and other parameters are not relevant in this application.
However, I see no base current limiting resistor, I assume it is in the IC, quite improbable that it's integrated in the transistor. This is a small uncertainty.
You can try the following: short the C and E pads of the unsoldered transistor with a 100 Ohm resistor. The missing segment should light up on ALL digits (a bit dim, maybe). If they do, then you know the LEDs and PCB traces are ok and that is must be either the transistor or the ICs signal otput.