String to Unicode

  • Thread starter Thread starter Juan Pedro Gonzalez
  • Start date Start date
J

Juan Pedro Gonzalez

Helo,

I'm building a small class in order to send an email through DNS MX records.
Everything works out except some ISO-8859-1 characters that get screwed up.
In order to solve this problem, I think that I should change my string to a
unicode string:

For example 'a' with apostrophe to "=E1"... Wouldn't mind if it changed to
"%E1" as that would be a simple replace call.

I'd like to use a built in function, since I would like to leave the class
open to other charsets.

Thanks in advance
 
Juan,

In memory a "String" and a "Char" are always in Unicode in dotNet
applications.

And therefore I don't see the problem. Can you explain it a little bit more?

Cor
 
Juan Pedro Gonzalez said:
I'm building a small class in order to send an email through DNS MX
records.
Everything works out except some ISO-8859-1 characters that get screwed
up.
In order to solve this problem, I think that I should change my string to
a
unicode string:

For example 'a' with apostrophe to "=E1"... Wouldn't mind if it changed to
"%E1" as that would be a simple replace call.

You may want to encode the message using MIME:

<URL:http://groups.google.de/groups?q=dotnet+MIME+encoding>

Notice that MIME doesn't directly have anything to do with Unicode.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top