Polarization encoding is a promising approach for practical quantum key distribution (QKD) systems due to its simple and decoding methodology. In this study, we propose self-compensating polarization encoder (SCPE) based on phase modulator, which can be composed of commercial off-the-shelf (COT) devices. We conducted proof-of-concept experiment test the SCPE, demonstrated an in-system bit error...