title: Prob. on Hebrew encoding
body: <p>I have a hebrew text just as <code>"×گض¸×¨ض´×™×،ض°×ک×•ض¹×ں"</code>, and I want to convert it to readable unicode hebrew charackters.</p>
  
  <p>I tried this code:</p>
  
  <pre><code>const string Str = "×گض¸×¨ض´×™×،ض°×ک×•ض¹×ں";
  
  Encoding enc1 = Encoding.Default;
  Encoding enc2 = Encoding.Unicode;
  
  byte[] bytes = enc1.GetBytes(Str);
  
  string hebrewString = enc2.GetString(bytes);
  
  label1.Text = hebrewString;
  </code></pre>
  
  <p>But it didn't succeeded. Please Help.</p>
  
  <p><strong>Update</strong>
  the text come from html source code</p>
  
  <pre><code>Version:1.0
  StartHTML:000000210
  EndHTML:000006218
  StartFragment:000001595
  EndFragment:000006126
  StartSelection:000001595
  EndSelection:000006126
  SourceURL:file:///C:/ProgramData/Babylon/LocalUI/wnd.html
  &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-    html401-19991224/loose.dtd"&gt;
  
  &lt;HTML 
  xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;HEAD&gt;&lt;TITLE&gt;CLient build #1.2&lt;/TITLE&gt;&lt;LINK 
  rel=stylesheet type=text/css href="img/frame.css?ver=41"&gt;&lt;LINK rel=stylesheet 
  type=text/css href="img/baby.css?ver=41"&gt;&lt;LINK rel=stylesheet type=text/css 
  href="img/word.css?ver=41"&gt;&lt;LINK rel=stylesheet type=text/css 
  href="img/text.css?ver=41"&gt;
  &lt;SCRIPT type=text/javascript src="js/moudles.js?ver=100"&gt;&lt;/SCRIPT&gt;
  
  &lt;SCRIPT type=text/javascript src="js/extrnl.js?ver=100"&gt;&lt;/SCRIPT&gt;
  
  &lt;SCRIPT type=text/javascript src="js/frame.js?ver=100"&gt;&lt;/SCRIPT&gt;
  
  &lt;SCRIPT type=text/javascript src="js/word.js?ver=100"&gt;&lt;/SCRIPT&gt;
  
  &lt;SCRIPT type=text/javascript src="js/fTxt.js?ver=100"&gt;&lt;/SCRIPT&gt;
  
  &lt;SCRIPT type=text/javascript src="js/baby.js?ver=100"&gt;&lt;/SCRIPT&gt;
  
  &lt;SCRIPT type=text/javascript src="js/plcy.js?ver=100"&gt;&lt;/SCRIPT&gt;
  &lt;/HEAD&gt;
  
  &lt;BODY style="FONT-FAMILY: Verdana" onload=bodyLoad() 
  class="scrollBar ie7 fontSize5" bgColor=#000100 name="Rslt"&gt;
  
  &lt;DIV class=m2&gt;
  
  &lt;DIV class=mrg&gt;
  
  &lt;DIV style="BOTTOM: -67px" id=baseBody class=client&gt;
  
  &lt;DIV id=wordContainer&gt;
  
  &lt;DIV style="OVERFLOW-Y: scroll; DISPLAY: block; FONT-FAMILY: Tahoma" 
  id=resultContainer class=wordBody&gt;
  
  &lt;DIV id=rsltCntnr&gt;
  
  &lt;DIV style="CURSOR: auto" id=BABID_Results&gt;&lt;!--StartFragment--&gt;&lt;DIV id=BABIDPtr_!!Z8UVKYSMBJ class=result entryType="3" entryPrio="1100099960"&gt;
  &lt;TABLE style="TABLE-LAYOUT: fixed" class=res-head cellSpacing=0 cellPadding=3 
  width="100%"&gt;
  &lt;TBODY&gt;
  &lt;TR&gt;
  &lt;TD vAlign=top width=20&gt;&lt;IMG id=BABID_CPIconImg class=BAB_ImgInTitle 
  src="C:\Users\Mahmoud\AppData\Roaming\Babylon\Content\icons/Z8UVKYSMBJ_glossary_icon.ico"&gt; 
  &lt;/TD&gt;
  &lt;TD id=BABID_CPTitle vAlign=top&gt;
  &lt;DIV style="DISPLAY: inline" id=BABID_CPName class=BAB_NormalTitle&gt;×‍ض´×œض¼×•ض¹×ں 
  ×گض¶×‘ض¶×ںض¾×©×پ×•ض¹×©×پض¸×ں ×”ض·×‍ض¼ض¸×œضµ×گ&lt;/DIV&gt;&lt;SPAN style="PADDING-LEFT: 2px"     id=BABID_CPBandBtns 
  valign="top"&gt;&lt;IMG class=BAB_ImageBtn title="Dictionary menu" tabIndex=0 
  src="c:\programdata\babylon\localui\img\res\btn_titlemenu.png" 
  behavetype="3ImageState" bab_name="BTN_TitleMenu"&gt; 
  &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
  &lt;DIV id=BABID_CPResult class=BAB_CPBodyStyleLocal&gt;
  &lt;DIV xmlns:babex="urn:schemas-babylon-com:babex" 
  xmlns:bab="urn:schemas-babylon-com:bab" 
  xmlns:msxsl="urn:schemas-microsoft-com:xslt"&gt;
  &lt;DIV dir=rtl class=term align=right&gt;
  &lt;DIV style="FLOAT: right" dir=ltr class=btnArr&gt;&lt;IMG class=BAB_ImageBtn 
  title="Previous term" tabIndex=0 
  src="c:\programdata\babylon\localui\img\res\btn_browseprevious.png" 
  bab_name="BTN_BrowsePrevious" behaveType="3ImageState" baburi=""&gt;&lt;IMG 
  class=BAB_ImageBtn title="Next term" tabIndex=0 
  src="c:\programdata\babylon\localui\img\res\btn_browsenext.png" 
  bab_name="BTN_BrowseNext" behaveType="3ImageState" baburi=""&gt;&lt;/DIV&gt;×گض¸×¨ض´×™×،ض°×ک×•ض¹×ں
  &lt;DIV class=rsltSpkrCntnr&gt;&lt;IMG class=BAB_ImageBtn 
  title="To listen to a text, select it, and click the speaker button" tabIndex=0 
  src="c:\programdata\babylon\localui\img\res\btn_sayit_rtl.png" valign="bottom" 
  bab_name="BTN_SayIt_rtl" behaveType="3ImageState" baburi="" 
  term="×گض¸×¨ض´×™×،ض°×ک×•ض¹×ں"&gt;&lt;/DIV&gt;&lt;/DIV&gt;
  &lt;DIV class=definition align=right&gt;&lt;SPAN dir=rtl&gt;
  &lt;STYLE&gt;a{cursor:pointer;text-decoration:none;color:blue&lt;/STYLE&gt;
  
  &lt;DIV 
  style="LINE-HEIGHT: 160%; FONT-FAMILY: David,Times New Roman; FONT-SIZE: 130%" 
  dir=rtl&gt;&lt;FONT style="COLOR: black; FONT-WEIGHT: normal"&gt;&lt;SUP&gt;×ھ&lt;/SUP&gt;&lt;/FONT&gt; 
  &lt;FONT color=blue&gt;(×–')&lt;/FONT&gt; [×™×•×•× ×™×ھ: ariston] ×،ض°×¢×•ض¼×“ض¸×”, ×گض²×¨×•ض¼×—    ض¸×”: "×گض¸×¨ض´×™×،ض°×ک×•ض¹×ں 
  ×¢ض¸×ھض´×™×“ ×”ض·×§ض¼ض¸×“×•ض¹×©×پ-×‘ض¼ض¸×¨×•ض¼×ڑض°-×”×•ض¼×گ ×œض·×¢ض²×©×‚×•ض¹×ھ ×œض·×¢ض²    ×‘ض¸×“ض¸×™×• ×”ض·×¦ض¼ض·×“ض¼ض´×™×§ض´×™×‌ ×œض¶×¢ض¸×ھض´×™×“ 
  ×œض¸×‘×•ض¹×گ" (×•×™×§×¨×گ ×¨×‘×” ×™×’). "×گض²× ض´×™ ×¢×•ض¹×¨ضµ×ڑض° ×”ض¸×گض¸×¨ض´×™×،ض°×ک×•ض¹×ں     ×œض·×—ض²×‘ض´×™×‘ض·×™, ×›ض¼ض·× ض°×¤ضµ×™ ×”ض¸×¨ض¹×ں" 
  (×©×‍×¢×•× ×™, ×©×™×¨×™×‌ ×’ ×¤×”).
  &lt;P&gt;[×گض²×¨ض´×™×،ض°×کض´×™×ں] &lt;/P&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR 
  style="CLEAR: both; FONT-SIZE: 1px"&gt;&lt;/DIV&gt;
  &lt;DIV class=BAB_CPCopyrightStyle xmlns:babex="urn:schemas-babylon-com:babex" 
  xmlns:bab="urn:schemas-babylon-com:bab" 
  xmlns:msxsl="urn:schemas-microsoft-com:xslt"&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;
  &lt;DIV dir=rtl&gt;
  &lt;P&gt;&lt;BR&gt;&lt;BR&gt;آ© ×›×œ ×”×–×›×•×™×•×ھ ×©×‍×•×¨×•×ھ ×œ×™×•×¨×©×™ ×”×‍×—×‘×¨&lt;BR&gt;Copyright 2003, The     author's 
  heirs آ©&lt;/P&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;
  &lt;LI&gt;&lt;B&gt;×œ×”×§×“×‍×”, ×œ×”×،×‘×¨×™×‌, ×œ×¨×©×™×‍×ھ ×”×‍×§×•×¨×•×ھ ×•×¢×•×“ - ×¨×گ×• &lt;A 
  style="TEXT-DECORATION: none" 
  href="bword://×‍ض´×œض¼×•ض¹×ں ×گض¶×‘ض¶×ںض¾×©×پ×•ض¹×©×پض¸×ں ×”ض·×‍ض¼ض¸×œضµ×گ/"&gt;×‍ض´×œض¼×•ض¹×ں     ×گض¶×‘ض¶×ںض¾×©×پ×•ض¹×©×پض¸×ں ×”ض·×‍ض¼ض¸×œضµ×گ 
  - ×¢ض·×‍ض¼×•ض¼×“ضµ×™ ×”ض·×¤ض¼ض°×ھض´×™×—ض¸×”&lt;/A&gt;.&lt;/B&gt;&lt;/LI&gt;&lt;/DIV&gt;&lt;/DIV&gt;
  &lt;DIV style="DISPLAY: none" dir=rtl id=BABID_BottomLinks 
  xmlns:babex="urn:schemas-babylon-com:babex" 
  xmlns:bab="urn:schemas-babylon-com:bab" 
  xmlns:msxsl="urn:schemas-microsoft-com:xslt"&gt;
  &lt;DIV style="FLOAT: left" id=BABID_BottomActions&gt;&lt;/DIV&gt; &lt;BR 
  style="CLEAR: both; FONT-SIZE: 1px"&gt;&lt;/DIV&gt;
  &lt;DIV class=prcTrial xmlns:babex="urn:schemas-babylon-com:babex" 
  xmlns:bab="urn:schemas-babylon-com:bab" 
  xmlns:msxsl="urn:schemas-microsoft-com:xslt"&gt;
  &lt;DIV class=left-corner&gt;&lt;IMG class=BAB_ImageStat 
  src="c:\programdata\babylon\localui\img\res\trialcornerleft.png" width=4 
  height=55 bab_name="TrialCornerLeft"&gt;&lt;/DIV&gt;
  &lt;DIV style="BACKGROUND: none transparent scroll repeat 0% 0%" 
  class=right-corner&gt;&lt;IMG class=BAB_ImageStat 
  src="c:\programdata\babylon\localui\img\res\trialcornerright.png" width=4 
  height=55 bab_name="TrialCornerRight"&gt;&lt;/DIV&gt;
  &lt;DIV class=prcTrial-body&gt;
  &lt;DIV class=days-left&gt;Dictionary trial version (4 days)&lt;/DIV&gt;&lt;IMG 
  class=BAB_ImageStat src="c:\programdata\babylon\localui\img\res\prctrial.png" 
  bab_name="PRCTrial"&gt;&lt;SPAN class=buy-link&gt;&lt;A id=CP_LINK 
  href="buyprc://!!Z8UVKYSMBJ,745,0/"&gt;Buy This 
  Dictionary&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR 
  style="CLEAR: both; FONT-SIZE: 1px"&gt;&lt;/DIV&gt;&lt;!--EndFragment--&gt;&lt;/DIV&gt;
  &lt;/DIV&gt;
  &lt;/DIV&gt;
  &lt;/DIV&gt;
  &lt;/DIV&gt;
  &lt;/DIV&gt;
  &lt;/DIV&gt;
  &lt;/BODY&gt;
  &lt;/HTML&gt;
  </code></pre>
  
  <p>this html works fine, but I can't get the hebrew text to string
  Thanks</p>