<?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: ICONV returns empty output buffer in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046058#M36088</link>
    <description>To expand on Bob's comments, I'd suggest first creating and testing something with the default encoding, and then work your way up to your own conversions.&lt;BR /&gt;&lt;BR /&gt;It took a couple of reads through the C environment to get the hang of wide characters and UTC stuff.&lt;BR /&gt;&lt;BR /&gt;I'd expect there are examples of using these calls available.  And there are ports of libiconv available from various sources, as well.&lt;BR /&gt;&lt;BR /&gt;Here's an earlier discussion:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=726740" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=726740&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There are also ports of libxml2 around, and xml can help deal with file structuring and "weird" data.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 11 May 2007 08:02:15 GMT</pubDate>
    <dc:creator>Hoff</dc:creator>
    <dc:date>2007-05-11T08:02:15Z</dc:date>
    <item>
      <title>ICONV returns empty output buffer</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046056#M36086</link>
      <description>Hello,&lt;BR /&gt;I have another question. I'm probably doing something stupid but...&lt;BR /&gt;I have the internationalization kit installed, so I have all the .ICONV files.&lt;BR /&gt;I'm reading a UTF-8 encoded message, which I try to converted using iconv.&lt;BR /&gt;&lt;BR /&gt;However the output buffer after calling iconv contains nothing, but the inbytesleft is 0, so all characters should have been converted.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rakesh</description>
      <pubDate>Fri, 11 May 2007 04:53:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046056#M36086</guid>
      <dc:creator>rakesh patel</dc:creator>
      <dc:date>2007-05-11T04:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: ICONV returns empty output buffer</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046057#M36087</link>
      <description>Rakesh,&lt;BR /&gt;&lt;BR /&gt;Most likely, the code has an error. Without the code, any comments would be pure random speculation. &lt;BR /&gt;&lt;BR /&gt;Please post a code segment that reproduces the problem that you are encountering. Before posting the code segment, please verify that the code segment is complete (e.g., it compiles, links, and produces the reported problem when executed).&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Fri, 11 May 2007 06:49:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046057#M36087</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2007-05-11T06:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: ICONV returns empty output buffer</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046058#M36088</link>
      <description>To expand on Bob's comments, I'd suggest first creating and testing something with the default encoding, and then work your way up to your own conversions.&lt;BR /&gt;&lt;BR /&gt;It took a couple of reads through the C environment to get the hang of wide characters and UTC stuff.&lt;BR /&gt;&lt;BR /&gt;I'd expect there are examples of using these calls available.  And there are ports of libiconv available from various sources, as well.&lt;BR /&gt;&lt;BR /&gt;Here's an earlier discussion:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=726740" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=726740&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There are also ports of libxml2 around, and xml can help deal with file structuring and "weird" data.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 May 2007 08:02:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046058#M36088</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-05-11T08:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: ICONV returns empty output buffer</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046059#M36089</link>
      <description>Hello,&lt;BR /&gt;I'm reading a message from MQ queue. The message is an UTF-8 xml message.&lt;BR /&gt;&lt;BR /&gt;I have the following...&lt;BR /&gt;Call iconv_open&lt;BR /&gt; iconv_struct = iconv_open("ISO8859-1", "UTF-8");&lt;BR /&gt;&lt;BR /&gt;Then I have my input message from MQ&lt;BR /&gt;char *input&lt;BR /&gt;&lt;BR /&gt;size_t len = strlen(input);&lt;BR /&gt;char* outbuf = calloc(sizeof(char),len*2);&lt;BR /&gt;size_t outlen = len*2;&lt;BR /&gt;&lt;BR /&gt;if(iconv(iconv_struct,&amp;amp;input,&amp;amp;len,&amp;amp;outbuf,&amp;amp;outlen) != 0)&lt;BR /&gt;{&lt;BR /&gt;   printf("error\n");&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;   printf("Success\n");&lt;BR /&gt;   printf("[%s]\n",outbuf);&lt;BR /&gt;}&lt;BR /&gt;</description>
      <pubDate>Fri, 11 May 2007 09:18:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046059#M36089</guid>
      <dc:creator>rakesh patel</dc:creator>
      <dc:date>2007-05-11T09:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: ICONV returns empty output buffer</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046060#M36090</link>
      <description>UTF-8 XML?  &lt;BR /&gt;&lt;BR /&gt;I'd probably use libxml2 to read and process it.  There's a port of libxml2 on the Freeware distro; it's the version that was current with the Freeware V8 distro.&lt;BR /&gt;&lt;BR /&gt;There's certainly more information here, but still not enough to go on.  In particular, we're going to need a little data, and it would be best to attach a text file (mumble.txt) to a reply here, with a full standalone example of your failing C code and a line or two of the UTF-8 text you're working with.&lt;BR /&gt;&lt;BR /&gt;The other option is to call in some help with this sort of thing, as I'm guessing you're on a schedule to get this done.&lt;BR /&gt;&lt;BR /&gt;Stephen Hoffman&lt;BR /&gt;HoffmanLabs.com</description>
      <pubDate>Fri, 11 May 2007 09:54:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046060#M36090</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-05-11T09:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: ICONV returns empty output buffer</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046061#M36091</link>
      <description>thanks for you help.&lt;BR /&gt;I'll try and get a simple example application done for monday. I'll also attach a file created from the UTF-8 message written by MQ.&lt;BR /&gt;&lt;BR /&gt;I also look into lib2xml&lt;BR /&gt;thanks again&lt;BR /&gt;&lt;BR /&gt;Rakesh&lt;BR /&gt;</description>
      <pubDate>Fri, 11 May 2007 10:01:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046061#M36091</guid>
      <dc:creator>rakesh patel</dc:creator>
      <dc:date>2007-05-11T10:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: ICONV returns empty output buffer</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046062#M36092</link>
      <description>Hellom&lt;BR /&gt;I've tried using lib2xml and I still get an empty output buffer.&lt;BR /&gt;&lt;BR /&gt;Attached is an example program source and a test file to decode.&lt;BR /&gt;</description>
      <pubDate>Mon, 14 May 2007 08:01:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046062#M36092</guid>
      <dc:creator>rakesh patel</dc:creator>
      <dc:date>2007-05-14T08:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: ICONV returns empty output buffer</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046063#M36093</link>
      <description>Here's the UTF-8 file</description>
      <pubDate>Mon, 14 May 2007 08:02:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046063#M36093</guid>
      <dc:creator>rakesh patel</dc:creator>
      <dc:date>2007-05-14T08:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: ICONV returns empty output buffer</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046064#M36094</link>
      <description>I got lib2xml working. I made a stupid mistake in the program.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 May 2007 09:01:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/iconv-returns-empty-output-buffer/m-p/5046064#M36094</guid>
      <dc:creator>rakesh patel</dc:creator>
      <dc:date>2007-05-14T09:01:00Z</dc:date>
    </item>
  </channel>
</rss>

