Does AC voltage charge capacitors?
Capacitors that are connected to AC are continuously charged and discharged with polarity reversing as the AC voltage reverses. When they are disconnected they may remain charged with one polarity or the other depending on the instant in the AC cycle that they are disconnected. Filter capacitors may have a small value of capacitance and thus not store a dangerous level of energy even though you can feel the shock. In that case, they don't require a discharge resistor.