en-UShe-IL
You are here:   Blog
Register   |  Login

Blog Archive:

Maximize
* Can be used in order to search for older blogs Entries

Search in blogs


Blog Categories:

Maximize
* Can be used in order to search for blogs Entries by Categories

Blog Tags:

Maximize
* Can be used in order to search for blogs by keywords

TNWikiSummit


Awared MVP 


 


Microsoft® Community Contributor 


Microsoft® Community Contributor


 Read first, before you you use the blog! Maximize
מרץ31

Written by: ronen ariely
31/03/2011 14:55 RssIcon

 

 
//convert string (that have hebrew chars) to binary:
////////////////////////////////////////////////////
//MyStringToBinary: המשתנה המכיל את הטקסט שרוצים להסב לדטא בינארי
System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
byte[] ConvertTextToBytesArray = encoding.GetBytes(MyStringToBinary);
 
//convert binary to string:
////////////////////////////////////////////////////
//MyBinaryData: משתנה המכיל את הדטא הבינארי שרוצים להציג כטקסט
string str;
System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding();
str = enc.GetString(MyBinaryData);