<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to print wchar_t strings in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-print-wchar-t-strings/m-p/4204563#M91513</link>
    <description>(These aren't the droids you're looking for. :-)&lt;BR /&gt;You shouldn't be using iostream.  But instead use stdio.&lt;BR /&gt;&lt;BR /&gt;The reason you get an address is because cout doesn't have a wchar_t insertion operator.  You'll need to use wcout.&lt;BR /&gt;Then there are N other roadblocks that keeps this from working.&lt;BR /&gt;&lt;BR /&gt;You may instead want to use wcstombs(3) to convert from wide character string to a multibyte string and then just use cout.</description>
    <pubDate>Mon, 26 May 2008 11:59:44 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-05-26T11:59:44Z</dc:date>
    <item>
      <title>how to print wchar_t strings</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-print-wchar-t-strings/m-p/4204562#M91512</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I need help in priting wchar_t strings&lt;BR /&gt;the output i get for the following program is some address&lt;BR /&gt;&lt;BR /&gt;#include&lt;IOSTREAM.H&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;wchar_t temp[]=L"Hello World";&lt;BR /&gt;cout&amp;lt;&lt;TEMP&gt;&lt;/TEMP&gt;return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;any info/pointers as how to print &lt;BR /&gt;&lt;BR /&gt;from&lt;BR /&gt;nayeem khan&lt;/IOSTREAM.H&gt;</description>
      <pubDate>Mon, 26 May 2008 11:36:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-print-wchar-t-strings/m-p/4204562#M91512</guid>
      <dc:creator>nayeem khan</dc:creator>
      <dc:date>2008-05-26T11:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to print wchar_t strings</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-print-wchar-t-strings/m-p/4204563#M91513</link>
      <description>(These aren't the droids you're looking for. :-)&lt;BR /&gt;You shouldn't be using iostream.  But instead use stdio.&lt;BR /&gt;&lt;BR /&gt;The reason you get an address is because cout doesn't have a wchar_t insertion operator.  You'll need to use wcout.&lt;BR /&gt;Then there are N other roadblocks that keeps this from working.&lt;BR /&gt;&lt;BR /&gt;You may instead want to use wcstombs(3) to convert from wide character string to a multibyte string and then just use cout.</description>
      <pubDate>Mon, 26 May 2008 11:59:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-print-wchar-t-strings/m-p/4204563#M91513</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-26T11:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to print wchar_t strings</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-print-wchar-t-strings/m-p/4204564#M91514</link>
      <description>Hi Dennis&lt;BR /&gt;&lt;BR /&gt;Thanks for the response...&lt;BR /&gt;&lt;BR /&gt;Another easy way is to use wcout&lt;BR /&gt;&lt;BR /&gt;If we use iostream we have to use wcout instead of cout&lt;BR /&gt;&lt;BR /&gt;#include&lt;IOSTREAM.H&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;wchar_t temp[]=L"Hello World";&lt;BR /&gt;wcout&amp;lt;&lt;TEMP&gt;&lt;/TEMP&gt;return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;from&lt;BR /&gt;nayeem khan&lt;BR /&gt;&lt;/IOSTREAM.H&gt;</description>
      <pubDate>Mon, 26 May 2008 12:03:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-print-wchar-t-strings/m-p/4204564#M91514</guid>
      <dc:creator>nayeem khan</dc:creator>
      <dc:date>2008-05-26T12:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to print wchar_t strings</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-print-wchar-t-strings/m-p/4204565#M91515</link>
      <description>&amp;gt;If we use iostream we have to use wcout instead of cout&lt;BR /&gt;&lt;BR /&gt;Yes but then you'll only be able to print out ASCII chars.&lt;BR /&gt;The N roadblocks are all documented here:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1054305" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1054305&lt;/A&gt;</description>
      <pubDate>Mon, 26 May 2008 12:13:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-print-wchar-t-strings/m-p/4204565#M91515</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-26T12:13:55Z</dc:date>
    </item>
  </channel>
</rss>

