Converting an unicode string to ascii code string 
Author Message
 Converting an unicode string to ascii code string

How can I convert an Unicode string to an Ascii code string ?

Thnx.



Fri, 07 Jan 2005 02:33:06 GMT  
 Converting an unicode string to ascii code string
Use the GetBytes method of the System.Text.ASCIIEncoding class.

Note that because .NET strings are Unicode encoded, you will not have a
System.String type that is ASCII encoded. The ASCII encoded string will be
an array of bytes (that you could for example write to a System.IO.Stream).


Quote:
> How can I convert an Unicode string to an Ascii code string ?

> Thnx.



Sat, 08 Jan 2005 11:09:58 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Unicode string to unicode coded string?

2. Convert Unicode string to Ascii

3. saving unicode string with fileput converts it to 8bit

4. Convert unicode string from latin to cyrilic

5. Convert Unicode String to Hex

6. HOW TO: Convert string between UNICODE and ANSI

7. convert a unicode string to a single byte

8. convert a unicode string to a single byte

9. String Convert Unicode

10. convert Unicode string

11. convert a unicode string to a single byte

12. how to Big5 String to unicode String?

 

 
Powered by phpBB® Forum Software