<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Πρώτα Βήματα - Αρχές προγραμματισμού</title><link>https://www.dotnetzone.gr:443/cs/forums/72/ShowForum.aspx</link><description>Αναρωτιέστε τι σημαίνει object; Class; Inheritance; Design pattern; Την απάντηση μπορείτε να την βρείτε εδώ!</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: μετατροπη unicode σε  elot 928</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/60648.aspx</link><pubDate>Wed, 20 Oct 2010 23:31:19 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:60648</guid><dc:creator>nikos123</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/60648.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=72&amp;PostID=60648</wfw:commentRss><description>&lt;div&gt;Το 928&amp;nbsp;αντιστοιχεί&amp;nbsp;στο codepage 1253 (ίσως&amp;nbsp;διαφέρουν 1-2&amp;nbsp;χαρακτήρες&amp;nbsp;όπως το Ευρώ)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Αφού είναι 928 το αρχείο, πρέπει να το ανοίξεις με αυτήν την κωδικοποίηση.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;pre&gt;&lt;span style="color:Black;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;    StreamReader reader &lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;new&lt;/span&gt; StreamReader(filename,  Encoding.GetEncoding(1253));&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;Αν θες να πάρεις τα bytes που&amp;nbsp;αντιστοιχούν στο 1253&amp;nbsp;&amp;nbsp;από κάποιο unicode string&lt;div&gt;&lt;div&gt;&lt;pre&gt;&lt;font class="Apple-style-span" face="'Courier New'" size="3"&gt;&lt;span class="Apple-style-span" style="font-size:11px;"&gt;&lt;pre&gt;&lt;span style="color:Black;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt; &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;byte&lt;/span&gt;[] bytes &lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; Encoding.GetEncoding(1253).GetBytes(&lt;span style="color:#666666;background-color:#e4e4e4;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;"this is text"&lt;/span&gt;); &lt;/span&gt;&lt;/pre&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</description></item><item><title>μετατροπη unicode σε  elot 928</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/60630.aspx</link><pubDate>Tue, 19 Oct 2010 23:17:42 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:60630</guid><dc:creator>XKAR</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/60630.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=72&amp;PostID=60630</wfw:commentRss><description>&lt;P&gt;κυριοι καλησπερα&lt;/P&gt;
&lt;P&gt;ΔΙΑΒΑΖΩ ΕΝΑ TEXT ΑΡΧΕΙΟ (928)&lt;/P&gt;&lt;FONT color=#008000 size=2 face="Courier New"&gt;&lt;FONT color=#008000 size=2 face="Courier New"&gt;&lt;FONT color=#008000 size=2 face="Courier New"&gt;
&lt;P&gt;reader = New StreamReader(filename, Encoding.Default)&lt;/P&gt;
&lt;P&gt;ΑΠΟ ΟΣΟ ΞΕΡΩ Η VB ΧΡΗΣΙΜΟΠΟΙΕΙ UNICODE&lt;/P&gt;
&lt;P&gt;ΠΩΣ ΜΠΟΡΩ ΝΑ ΚΑΝΩ CONVERT ΣΕ 928 ΠΑΛΙ ΠΡΙΝ ΤΟ ΣΤΕΙΛΩ ΤΟ ΑΡΧΕΙΟ ΣΤΟΝ ΕΚΤΥΠΩΤΗ&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description></item></channel></rss>