>> ... It would be much easier if there was a way to know the character code ...
In PCLETTO fonts, the 'cmap' table is not one of the tables in the download, so you can't access any glyph->character mapping.
The character code to be associated with a particular glyph in a downloaded "PCL character definition" escape sequence (i.e. the character descriptor & data) is given by the preceding "PCL character code" escape sequence.
With many downloaded PCLETTO fonts, the PCL font is only a subset of the 'donor' TTF, and the character codes used are NOT the same as the original (Unicode) code-points.
You'll probably find that the 'symbol set' identifier in the font header is set to one of the 'custom' values.
This is usually the case with applications such as Word, which, in conjunction with the printer driver, dynamically construct a 'subset' font containing just the characters required by the document - but the character codes are also allocated dynamically, starting with (for PCL5) space (0x20) or (for PCL6) <NUL> (0x00) or perhaps <SOH> (0x01).
The codes are allocated according to the orderr of the required characters as encountered in the source document.
For example, in one document which contained "abcba", the (PCL5) generated characters would be associated with codes 0x20, 0x21, 0x22, 0x21, 0x20.
But for another document which contained "pqrqp", the generated characters would be associated with the same PCL character codes, although the glyph data would obviously be different.
I think that commercial PCL viewers will rasterise the provided glyph data (ignoring the PCL character code).
... and some of the viewers CAN extract the text as ASCII/Unicode code-points, but I think that they only do this for common fonts, and they do it by 'recognising' the individual glyph datas.