P
pietdejong
Hello all,
I want to use a Windows client to send a character stream via http
to a *nix server, that should interpret my characters as such. My
problem
lies with non-ascii chars. For example: if my char is 'ø' (byte 248),
I
want to keep that byte, and not the *nix interpretation of it 'ø'
(bytes 195,184).
The best way of handling things would probably be to do no
interpretation,
but since I'm parsing the HTTP headers line by line, I would like to
use
Java's BufferedReader (that makes already a byte-to-char
transformation).
Besides that, I'm using a bean like structure holding the information
passed by the charstream, to process. Since my bean has some String
fields, it is needless to say that some byte-char transformation has to
be
done.
Basically, what I would like to get to work is the following:
win-client passes byte 248 via http to *nix server. *nix server
implements a
method getString() that reproduces internally correct chars, but in the
end
writes initial bytes again..., or in case that's not possible, a user
defined
char encoding.
Is this possible?
Sincerely,
Piet de Jong
I want to use a Windows client to send a character stream via http
to a *nix server, that should interpret my characters as such. My
problem
lies with non-ascii chars. For example: if my char is 'ø' (byte 248),
I
want to keep that byte, and not the *nix interpretation of it 'ø'
(bytes 195,184).
The best way of handling things would probably be to do no
interpretation,
but since I'm parsing the HTTP headers line by line, I would like to
use
Java's BufferedReader (that makes already a byte-to-char
transformation).
Besides that, I'm using a bean like structure holding the information
passed by the charstream, to process. Since my bean has some String
fields, it is needless to say that some byte-char transformation has to
be
done.
Basically, what I would like to get to work is the following:
win-client passes byte 248 via http to *nix server. *nix server
implements a
method getString() that reproduces internally correct chars, but in the
end
writes initial bytes again..., or in case that's not possible, a user
defined
char encoding.
Is this possible?
Sincerely,
Piet de Jong