The photonic spin Hall effect, characterized by its polarization-driven spin-related displacement, has played an essential role in coding information processing. In this Letter, using a two-period double-layer dielectric plate, the displacement changes within the angle region are first observed, and a two-bit effective coding is achieved through non-uniform quantization of displacement values and coding. Afterward, by constructing Brewster angles (BAs), effective three-bit coding is achieved at the selected BA by dividing the angle domain. By changing the relative refractive index of the constituent materials (nB), effective coding is achieved at corresponding angles (45°–85°). By connecting two-bit and three-bit coding, a five-bit coding is fulfilled. By setting the last six invalid values, effective correspondence of 26 English letters is obtained. At the same time, the largest displacement peak itself is huge and varies accordingly with different values of nB. This work can provide some reference for designing optical coders.