<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CXTPPropExchangeXMLNode read/write UTF-16 problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPPropExchangeXMLNode read/write UTF-16 problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 13:44:36 +0000</pubDate>
  <lastBuildDate>Thu, 24 Jul 2008 07:37:09 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=11518</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode read/write UTF-16 problem : Did you try px.LoadFromString(...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11518&amp;PID=38826&amp;title=cxtppropexchangexmlnode-read-write-utf16-problem#38826</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11518<br /><strong>Posted:</strong> 24 July 2008 at 7:37am<br /><br />Did you try px.LoadFromString( _bstr_t(data )) ?]]>
   </description>
   <pubDate>Thu, 24 Jul 2008 07:37:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11518&amp;PID=38826&amp;title=cxtppropexchangexmlnode-read-write-utf16-problem#38826</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode read/write UTF-16 problem : Hi, I cannot read/write to a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11518&amp;PID=38824&amp;title=cxtppropexchangexmlnode-read-write-utf16-problem#38824</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2065">hipopotamo</a><br /><strong>Subject:</strong> 11518<br /><strong>Posted:</strong> 24 July 2008 at 7:24am<br /><br /><P>Hi,</P><P>&nbsp;I cannot read/write to a file,&nbsp;&nbsp; I'm using a huge configuration file to write all my presentation stuff, not only codejock stuff, but also adhoc and other libs, it would be very complicated if I had&nbsp;a file for each one of the commandbars and dockingmanagers from xtp.</P><P>Is there any other way I can make LoadFromString to work ?</P><P>Regards</P>]]>
   </description>
   <pubDate>Thu, 24 Jul 2008 07:24:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11518&amp;PID=38824&amp;title=cxtppropexchangexmlnode-read-write-utf16-problem#38824</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode read/write UTF-16 problem : Hi, Whithout Unicode you can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11518&amp;PID=38810&amp;title=cxtppropexchangexmlnode-read-write-utf16-problem#38810</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11518<br /><strong>Posted:</strong> 24 July 2008 at 4:32am<br /><br /><DIV>Hi,</DIV><DIV>Whithout Unicode you can't use Utf-16.&nbsp; Utf-8 will work for you, but in this case you have to write/read directly to file.</DIV><DIV>&nbsp;</DIV><DIV>instead GetXML use SaveToFile.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>also try insead</DIV><DIV>&nbsp;</DIV><DIV>px.LoadFromString( data )<BR></DIV><DIV>write</DIV><DIV>px.LoadFromString( _bstr_t(data ))<BR></DIV>]]>
   </description>
   <pubDate>Thu, 24 Jul 2008 04:32:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11518&amp;PID=38810&amp;title=cxtppropexchangexmlnode-read-write-utf16-problem#38810</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode read/write UTF-16 problem : No, i&amp;#039;m not using Unicode,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11518&amp;PID=38768&amp;title=cxtppropexchangexmlnode-read-write-utf16-problem#38768</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2065">hipopotamo</a><br /><strong>Subject:</strong> 11518<br /><strong>Posted:</strong> 23 July 2008 at 8:26am<br /><br />No, i'm not using Unicode, but may be I do not need to use utf-16, i really don't know.<DIV>&nbsp;</DIV><DIV><DIV>px.LoadFromString( data ) fails with this string, if i use <FONT color=#ff0000>çã</FONT> instead of <FONT color=#ff0000>ca.</FONT></DIV><DIV><FONT color=#ff0000></FONT>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff><SPAN =m>"</SPAN><SPAN =m>&gt;</SPAN></FONT><SPAN =tx><strong>&lt;Settings CompactMode="1"&gt; &lt;CommandBars&gt; &lt;CommandBar Class="CXTPMenuBar" Type="0" BarID="1" Flags="95" Style="4194304" Title="Menu Bar" MRUWidth="32767" Closeable="0" ResourceId="132"&gt; &lt;Controls&gt; &lt;Control Class="CXTPControlPopup" Type="2" Id="1000" IconId="1000" Tag="181704656" Caption="competi<FONT color=#ff0000>çã</FONT>o" TooltipText="Popup" DescriptionText="Popup" Style="3" CommandBarId="16777216"/&gt; &lt;/Controls&gt; &lt;/CommandBar&gt; &lt;CommandBar Class="CXTPPopupBar" Type="2" Position="5" BarID="16777216" Style="4194304"/&gt; &lt;/CommandBars&gt; &lt;Layout&gt; &lt;DockState Version="32" ScreenSize="1280, 1024" Count="1"&gt; &lt;BarInfo0 BarId="1" MRUWidth="32767"/&gt; &lt;/DockState&gt; &lt;DockBars&gt; &lt;DockBar0 Count="3" Id1="1"/&gt; &lt;/DockBars&gt; &lt;/Layout&gt; &lt;Options Theme="3" Schema="32" AlwaysShowFullMenus="1" ShowFullAfterDelay="1" ToolBarScreenTips="1" ToolBarAccelTips="0" LargeIcons="0" Animation="0" SyncFloatingBars="1" ShowExpandButtonAlways="1" IconsSize="0, 0" LargeIconsSize="0, 0" IconsWithShadow="0" UseDisabledIcons="0" UseFadedIcons="1" DblClickFloat="0" ShowTextBelowIcons="0" AltDragCustomization="1" AutoHideUnusedPopups="1" PopupIconsSize="0, 0" KeyboardCuesUse="1" KeyboardCuesShow="0" Customizable="0"/&gt; &lt;/Settings&gt;</strong></SPAN>&nbsp;</DIV></DIV>]]>
   </description>
   <pubDate>Wed, 23 Jul 2008 08:26:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11518&amp;PID=38768&amp;title=cxtppropexchangexmlnode-read-write-utf16-problem#38768</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode read/write UTF-16 problem : Hi,  Do you compile with Unicode...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11518&amp;PID=38724&amp;title=cxtppropexchangexmlnode-read-write-utf16-problem#38724</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11518<br /><strong>Posted:</strong> 23 July 2008 at 1:31am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Do you compile with Unicode ?</DIV>]]>
   </description>
   <pubDate>Wed, 23 Jul 2008 01:31:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11518&amp;PID=38724&amp;title=cxtppropexchangexmlnode-read-write-utf16-problem#38724</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode read/write UTF-16 problem : Correction!  It does not work...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11518&amp;PID=38683&amp;title=cxtppropexchangexmlnode-read-write-utf16-problem#38683</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2065">hipopotamo</a><br /><strong>Subject:</strong> 11518<br /><strong>Posted:</strong> 22 July 2008 at 7:40am<br /><br />Correction!<DIV>&nbsp;</DIV><DIV>It does not work for DockingManager also.</DIV><DIV>&nbsp;</DIV><DIV>A string like this one "competição"( Portuguese word, same as "competition" )&nbsp;invalidates all the xml.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 22 Jul 2008 07:40:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11518&amp;PID=38683&amp;title=cxtppropexchangexmlnode-read-write-utf16-problem#38683</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode read/write UTF-16 problem : Hi,  I&amp;#039;m trying to save...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11518&amp;PID=38633&amp;title=cxtppropexchangexmlnode-read-write-utf16-problem#38633</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2065">hipopotamo</a><br /><strong>Subject:</strong> 11518<br /><strong>Posted:</strong> 21 July 2008 at 12:31pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I'm trying to save the layout of the commands bars into a string using PropExchange tool, but, everytime I put a character that is not UTF-8&nbsp;in the caption of the button, I'm not able to read the string again.</DIV><DIV>&nbsp;</DIV><DIV>The code is something like this...</DIV><DIV>&nbsp;</DIV><DIV>CXTPCommandBars *pManager;</DIV><DIV>&nbsp;</DIV><DIV>&lt;...&gt;</DIV><DIV><BR>&nbsp;CXTPPropExchangeXMLNode px(FALSE, 0, _T("Settings"));<BR>&nbsp;px.SetEncoding( _T("UTF-16") );</DIV><DIV>&nbsp;XTP_COMMANDBARS_PROPEXCHANGE_PARAM param;</DIV><DIV><BR>&lt;...&gt;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;pManager-&gt;DoPropExchange(&amp;px, &amp;param);</DIV><DIV>&nbsp;</DIV><DIV><BR>CString&nbsp;data =&nbsp;px.GetXML(true) );</DIV><DIV>&nbsp;</DIV><DIV>// data string seems to be ok.</DIV><DIV>&nbsp;</DIV><DIV>//&nbsp;to read the file </DIV><DIV>&nbsp;</DIV><DIV>CXTPPropExchangeXMLNode px(true, 0, _T("Settings"));<BR>&nbsp;px.SetEncoding( _T("UTF-16") );</DIV><DIV>&nbsp;XTP_COMMANDBARS_PROPEXCHANGE_PARAM param;<BR>&lt;...&gt;</DIV><DIV><BR>&nbsp;if&nbsp; (!px.LoadFromString( data )<BR>&nbsp;{</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fails!!!! because of the non utf8 character in the caption</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I need to use UTF-16, but I'm not sure what I'm doing&nbsp;wrong.</DIV><DIV>&nbsp;</DIV><DIV>Please note that I have a similar code for the DockingManager and it is working fine with non utf8 caractares.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV>]]>
   </description>
   <pubDate>Mon, 21 Jul 2008 12:31:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11518&amp;PID=38633&amp;title=cxtppropexchangexmlnode-read-write-utf16-problem#38633</guid>
  </item> 
 </channel>
</rss>