Hi -
I am using the Encoding class to encode unicode strings.
I am encoding into a variety of target encodings eg utf-8,
'iso-8859-1' or 'iso-8859-5' etc
like this:
encodedBytes = Encoding.GetEncoding("iso-8859-1").GetBytes(TextBox1.Text);
anyone know a technique to cause exceptions to be thrown if there is
no corresponding mapping possible for any of the characters?
what is happening in practice is that they get converted into a '?'
symbol - but I'd rather an exception were thrown....
ta,
Oliver.