But the ones you have written aren't characters Z and z, but rather they are
accented characters (Z or z with a caron, or hacek). They are in the upper 128
of an 8-bit char table and will vary depending on the char set. If you look
here:
http://www.columbia.edu/kermit/latin2.html
at ISO 8859-2 Latin Alphabet 2 then they map differently from the mapping you
have indicated below. You must be using a different char set. In any event, you
asked for plain Z and z, which is not what you've indicated below.