<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[wide char File einlesen]]></title><description><![CDATA[<p>Moin,</p>
<p>ich bin nicht sehr erfahren im Programmieren und stehe vor einem (fuer mich) schwierigen Problem.</p>
<p>Es handelt sich um Datenbankfiles eines Programmes die ich auswerten möchte. Sie beeinhalten XML Strukturen aber leider sind sie sehr seltsam kodiert.</p>
<p>Hier mal ein Auszug (Sorry ich finde keine &quot;spoiler&quot; Funktion):</p>
<p>ĐĎŕˇ±á &gt;  ţ˙     o  ţ˙˙˙  m n | } ~ ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙R o o t E n t r y   ˙˙˙˙˙˙˙˙ –‚OHÎq Ŕ V 0 0 0 0 1 . X M L  ˙˙˙˙˙˙˙˙˙˙˙˙  µ V 0 0 0 0 4 . X M L  ˙˙˙˙ ˙˙˙˙ 8 ˜ V 0 0 0 0 3 . X M L    ˙˙˙˙  ä p ý˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙R o o t E n t r y   ˙˙˙˙˙˙˙˙ `ô-HÎ @ V 0 0 0 0 1 . X M L  ˙˙˙˙˙˙˙˙˙˙˙˙  Äł V 0 0 0 0 4 . X M L  ˙˙˙˙ ˙˙˙˙ 8 @ V 0 0 0 0 3 . X M L    ˙˙˙˙  ä ˙˙˙˙˙˙˙˙ ý˙˙˙ţ˙˙˙ţ˙˙˙ </p>
<p>   ţ˙˙˙ý˙˙˙ý˙˙˙            ! &quot; # $ % &amp; ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; &lt; = &gt; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~  € V 0 0 0 0 5 . X M L   ˙˙˙˙˙˙˙˙˙˙˙˙ ä ˙˙˙˙˙˙˙˙˙˙˙˙ ˙˙˙˙˙˙˙˙˙˙˙˙ ˙˙˙˙˙˙˙˙˙˙˙˙        </p>
<p>              ţ˙˙˙   ! &quot; # $ % &amp; ' ( ) * + , - . / 0 1 2 3 4 5 6 7 ţ˙˙˙9 : ; &lt; = &gt; ? @ A B C D E F G H I J K L M N O P ţ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ţ&lt; ? x m l v e r s i o n = &quot; 1 . 0 &quot; e n c o d i n g = &quot; U T F - 1 6 &quot; ? &gt;</p>
<p>&lt; a d r e s s e n &gt;</p>
<p>&lt; k u n d e n a d r i d = &quot; R 0 4 &quot; c r = &quot; 4 0 2 4 3 , 6 6 7 7 7 6 6 3 1 9 &quot; c r b y = &quot; B E N U T Z E R &quot; c h = &quot; 4 1 0 4 3 , 0 7 2 1 0 9 2 2 4 5 &quot; c h b y = &quot; B E N U T Z E R &quot; a d d r g r p = &quot; S ü d &quot; s p r a c h e = &quot; d e _ D E &quot; m a h n t y p = &quot; 1 &quot; &gt;</p>
<p>Sie beginnen also mit lauter &quot;Müll&quot; und die eigentlichen Daten sind alle scheinbar in einer 2-byte Kodierung. Alle mir bekannten Arten diesen File einzulesen (getline(), get() oder &gt;&gt;) produzieren nur Müll.</p>
<p>getline() macht nach ~15 Zeichen Schluss, als sei der File am Ende<br />
get() und &gt;&gt; lassen willkürlich Zeichen &quot;aus&quot; (mir ist klar das es nicht wirklich willkürlich ist sondern ich zu doof bin)</p>
<p>Auch als wchar_t habe ich es probiert das ging aber auch nicht.</p>
<p>Kann mich jemand in die richtige Richtung stossen?</p>
<p>Vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/319362/wide-char-file-einlesen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Jul 2026 20:13:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/319362.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Aug 2013 16:03:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wide char File einlesen on Thu, 15 Aug 2013 16:03:26 GMT]]></title><description><![CDATA[<p>Moin,</p>
<p>ich bin nicht sehr erfahren im Programmieren und stehe vor einem (fuer mich) schwierigen Problem.</p>
<p>Es handelt sich um Datenbankfiles eines Programmes die ich auswerten möchte. Sie beeinhalten XML Strukturen aber leider sind sie sehr seltsam kodiert.</p>
<p>Hier mal ein Auszug (Sorry ich finde keine &quot;spoiler&quot; Funktion):</p>
<p>ĐĎŕˇ±á &gt;  ţ˙     o  ţ˙˙˙  m n | } ~ ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙R o o t E n t r y   ˙˙˙˙˙˙˙˙ –‚OHÎq Ŕ V 0 0 0 0 1 . X M L  ˙˙˙˙˙˙˙˙˙˙˙˙  µ V 0 0 0 0 4 . X M L  ˙˙˙˙ ˙˙˙˙ 8 ˜ V 0 0 0 0 3 . X M L    ˙˙˙˙  ä p ý˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙R o o t E n t r y   ˙˙˙˙˙˙˙˙ `ô-HÎ @ V 0 0 0 0 1 . X M L  ˙˙˙˙˙˙˙˙˙˙˙˙  Äł V 0 0 0 0 4 . X M L  ˙˙˙˙ ˙˙˙˙ 8 @ V 0 0 0 0 3 . X M L    ˙˙˙˙  ä ˙˙˙˙˙˙˙˙ ý˙˙˙ţ˙˙˙ţ˙˙˙ </p>
<p>   ţ˙˙˙ý˙˙˙ý˙˙˙            ! &quot; # $ % &amp; ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; &lt; = &gt; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~  € V 0 0 0 0 5 . X M L   ˙˙˙˙˙˙˙˙˙˙˙˙ ä ˙˙˙˙˙˙˙˙˙˙˙˙ ˙˙˙˙˙˙˙˙˙˙˙˙ ˙˙˙˙˙˙˙˙˙˙˙˙        </p>
<p>              ţ˙˙˙   ! &quot; # $ % &amp; ' ( ) * + , - . / 0 1 2 3 4 5 6 7 ţ˙˙˙9 : ; &lt; = &gt; ? @ A B C D E F G H I J K L M N O P ţ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ţ&lt; ? x m l v e r s i o n = &quot; 1 . 0 &quot; e n c o d i n g = &quot; U T F - 1 6 &quot; ? &gt;</p>
<p>&lt; a d r e s s e n &gt;</p>
<p>&lt; k u n d e n a d r i d = &quot; R 0 4 &quot; c r = &quot; 4 0 2 4 3 , 6 6 7 7 7 6 6 3 1 9 &quot; c r b y = &quot; B E N U T Z E R &quot; c h = &quot; 4 1 0 4 3 , 0 7 2 1 0 9 2 2 4 5 &quot; c h b y = &quot; B E N U T Z E R &quot; a d d r g r p = &quot; S ü d &quot; s p r a c h e = &quot; d e _ D E &quot; m a h n t y p = &quot; 1 &quot; &gt;</p>
<p>Sie beginnen also mit lauter &quot;Müll&quot; und die eigentlichen Daten sind alle scheinbar in einer 2-byte Kodierung. Alle mir bekannten Arten diesen File einzulesen (getline(), get() oder &gt;&gt;) produzieren nur Müll.</p>
<p>getline() macht nach ~15 Zeichen Schluss, als sei der File am Ende<br />
get() und &gt;&gt; lassen willkürlich Zeichen &quot;aus&quot; (mir ist klar das es nicht wirklich willkürlich ist sondern ich zu doof bin)</p>
<p>Auch als wchar_t habe ich es probiert das ging aber auch nicht.</p>
<p>Kann mich jemand in die richtige Richtung stossen?</p>
<p>Vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2346109</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2346109</guid><dc:creator><![CDATA[rocco123]]></dc:creator><pubDate>Thu, 15 Aug 2013 16:03:26 GMT</pubDate></item><item><title><![CDATA[Reply to wide char File einlesen on Thu, 15 Aug 2013 16:09:06 GMT]]></title><description><![CDATA[<p>Du möchtest std::ios_base::binary beim Öffnen der Datei benutzen, ansonsten landest du im Textmodus und dein OS versucht die Kodierung zu erraten und in &quot;normalen&quot; Text zu konvertieren, daher die unerwarteten EOFs und Sprünge.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2346114</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2346114</guid><dc:creator><![CDATA[nwp3]]></dc:creator><pubDate>Thu, 15 Aug 2013 16:09:06 GMT</pubDate></item></channel></rss>