Re: Character replaced with "?"




Tidan wrote:
> Hi,
>
> I'm programming a web service in Java on unix platform and this web
> service is called by a windows client. The client send a crypted string
> to the server, but some character are not recognise and they are
> replaced with question mark... And the numeric value of this character
> change for 63 (value of the question mark)
> These character are (in decimal) 129,141, 143, 144, 157. Both client
> and server are set to use cp1252 encoding.
> I know these character are unused in CP1252, but when I encrypt the
> string on the client, I use an algorithm based on numeric values of the
> characters and so, I can have some of these in the string. When it
> append, I am unable to decrypt my string on the server.

Since you want to send binary data, base64 encoding _is_ the way to go.
If there where some characters you wish to transmit, i would suggest
specifying the proper encoding in your web service call.

.



Relevant Pages

  • Re: Reflection.Emit a dynamic assembly to a static member
    ... client sends an invalid string. ... This way the client cannot will not be able ... because that would break the web service clients. ... I suggest that your web method accepts a string parameter ...
    (microsoft.public.dotnet.languages.csharp)
  • Can Web Service modify SOAP Header parameters?
    ... I built a test web service project in VS2005 and I'm tring to ... Public Username as String ... client is able to populate grid with received dataset ... I thought that most logical place to have tokens located is a SOAP ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Funky Error
    ... If the data type of the column is a string and the client can't pull ... If this doesn't work as a view on the client, can you make it a view on ... >>storing arbitrary binary information, unlike character ... Storing binary data in character ...
    (microsoft.public.sqlserver.programming)
  • Re: Processing and sending large data using Web Service
    ... How can I send such a big file using a web service to the client who ... This is writting to a string only for testing> purpose. ... How can I send such a big file using a web service to the client who> is consuming the web service? ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: How to implement a server socket compatible to telnet?
    ... type String_Access is access all String; ... end loop; ... -- Read values from client-stream character by character. ... I found out how to read character by character from the client. ...
    (comp.lang.ada)