Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

Character replaced with "?"

Thread view: 
Tidan - 04 Jan 2006 18:41 GMT
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.

Anyone can help ?
thx
Chris Smith - 04 Jan 2006 18:46 GMT
> 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
[quoted text clipped - 7 lines]
> 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.

So basically, you are trying to send binary data, but you'd like to be
able to treat it as a string.  In that case, google for Base64 encoding.

Signature

www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

Stefan Schulz - 04 Jan 2006 19:24 GMT
> Hi,
>
[quoted text clipped - 9 lines]
> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.