> Hello all,
>
[quoted text clipped - 25 lines]
> If I send the original string to the printer I get '?' because there is
> no such thing as character -51.
Huh?
How are you sending 'the original string'? I would expect that the
printer is merely going to receive a string of octets ; it doesn't
matter if we think of them as signed (which java does) or unsigned
(which the printer does); the pattern of bits is the same.
I guess the issue is how to send that byte stream to the printer
without it getting translated.
> What am I missing? How can I complete the conversion from UTF to
> ISO-8859-7? It seems that I'm half the way.
>
> Thanks a lot for your time.
MEARTURO - 30 Jun 2006 20:21 GMT
> > Hello all,
> >
[quoted text clipped - 38 lines]
> >
> > Thanks a lot for your time.
Hi,
You have a very good point, the printer expects something like 0D 0F A0
etc.
The problem is that I may have a string with characters from the base
character set (ASCII) and from the extended set (Greek) for instance a
street name in Greek + the number of the street. The conversion leaves
the 'number of the street' intact and the bytes representing the greek
letters in -59, which seems to be a relative position from the top of
ISO-8859-7.
Thanks a lot for your suggestion.
> Hello all,
>
[quoted text clipped - 28 lines]
> What am I missing? How can I complete the conversion from UTF to
> ISO-8859-7? It seems that I'm half the way.
Don't send "the original String". Send the bytes.
- Oliver