473,396 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

extended chars and a web service

Stu
Hi,

I have a web service which accepts a password field
When I send encrypted character to this web service
and they happen to be an extended character
I get an xml error.How do I solve this

TIA

Stu
Nov 21 '05 #1
3 1372
Stu <St*@discussions.microsoft.com> wrote:
I have a web service which accepts a password field
When I send encrypted character to this web service
and they happen to be an extended character
I get an xml error.How do I solve this


When you say "encrypted character" - what exactly do you mean?
Encryption usually results in binary data rather than string data, and
you shouldn't be passing binary data as if it were string data.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 21 '05 #2
Stu
Hi,

The encrypted data could return an ascii char of say 131 ro 141 etc
which can be represented as a string but seem to give a validation error


"Jon Skeet [C# MVP]" wrote:
Stu <St*@discussions.microsoft.com> wrote:
I have a web service which accepts a password field
When I send encrypted character to this web service
and they happen to be an extended character
I get an xml error.How do I solve this


When you say "encrypted character" - what exactly do you mean?
Encryption usually results in binary data rather than string data, and
you shouldn't be passing binary data as if it were string data.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 21 '05 #3
Stu <St*@discussions.microsoft.com> wrote:
The encrypted data could return an ascii char of say 131 ro 141 etc
No it couldn't, because ASCII doesn't *have* characters 131-141. ASCII
only goes up as far as 127.
which can be represented as a string but seem to give a validation error


Whereas *real* ASCII shouldn't cause any problems at all. This is one
of the advantages of using Base64 - the result is entirely ASCII.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sean O'Dwyer | last post by:
I sometimes need to find a set of records via PHP/SQL with non-English/extended characters fed to the query via a hyperlink. For example, I have a navigation link on a site that tries to pass the...
2
by: Christian Wilcox | last post by:
I'm trying to programmatically access information from a telnet session which is normally accessed with a telnet program capable of terminal emulation (currently set at VT320). The initial login...
1
by: | last post by:
Hey all, Quick question...been bugging me for some time, really. I have a console app, it does some things, and I want to save an array of text to a text file. The text consists of ASCII and...
0
by: brrrdog | last post by:
Whenever I write to Response.Outputstream after doing a plain response.write, I get a delimiter between the two writes that is made up of three extended ascii chars (decimal equivalents 239,...
3
by: James Pahiris | last post by:
Is there any way to store an extended ascii char in visual basic .net In previous VB chr$(254) ' â–  I need to send ascii chars (8 bit) to a serial port Thanks for any help.
2
by: jajalc | last post by:
Hi all, WE have a windows service using .net and which uses a System.Timers.Timer..all the of code works fine..... but after a extended period of time the timer just stops firing the elasped...
5
by: aagarwal8 | last post by:
Hi, I want to display the extended ASCII charset in the list view (in List mode), but when i assign any of the Ex. ASCII chars to the listview item text, it renders blank. Any idea how i can...
0
by: jumperbl | last post by:
I am converting hex to ASCII and one of the words has a dot in the middle, which is in the extended ascii characters. when i do this i get the ascii chars. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.