<?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: Converting xstring to string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-to-string/m-p/5067147#M1177306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This problem is quite common, it implies code conversion, search the forum. Briefly, the official way to convert is to use CL_ABAP_CONV_IN_CE class. This class is supplied with documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Jan 2009 23:15:18 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2009-01-25T23:15:18Z</dc:date>
    <item>
      <title>Converting xstring to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-to-string/m-p/5067145#M1177304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I am trying to read a survey of a service request in CRM 6.&lt;/P&gt;&lt;P&gt;There is not problem getting the valuexml from the correct survey but when I try to convert to string with Function Module CRM_SVY_DB_CONVERT_HEX2STRING (have also tried FM ECATT_CONV_XSTRING_TO_STRING) the returned string contains nothing more then chinese and japanese characters. If I use the xml browser in the debugger the xml is displayed correctly (I assue it converts the asian characters to xml somehow) but I cannot work with the string. &lt;/P&gt;&lt;P&gt;So my question is: has this happen to anyone of you? And what did you do to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The survey is made entirely in English (UK), the system language is English, can there be some translation function somewhere causing this?&lt;/P&gt;&lt;P&gt;I have tried it from different workstations so it is not my local settings anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 17:50:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-to-string/m-p/5067145#M1177304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T17:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Converting xstring to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-to-string/m-p/5067146#M1177305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module 'CRM_SVY_DB_CONVERT_HEX2STRING' does not do any code page conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is you must execute the code page conversion additionally into the system code page. For this purpose you must know in which Encoding the XSTRING is. If the XSTRING is encoded for example in UTF8, you could call the method 'XCONVCP_UTF82SYST' of the class 'CL_SURVEY_TOOLKIT' BEFORE the call of the function module 'CRM_SVY_DB_CONVERT_HEX2STRING'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this should resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 19:08:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-to-string/m-p/5067146#M1177305</guid>
      <dc:creator>daniel_kaoro</dc:creator>
      <dc:date>2009-01-23T19:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Converting xstring to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-to-string/m-p/5067147#M1177306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This problem is quite common, it implies code conversion, search the forum. Briefly, the official way to convert is to use CL_ABAP_CONV_IN_CE class. This class is supplied with documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2009 23:15:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-to-string/m-p/5067147#M1177306</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-01-25T23:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Converting xstring to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-to-string/m-p/5067148#M1177307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YES,&lt;/P&gt;&lt;P&gt;thank you Daniel that was spot on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 09:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-xstring-to-string/m-p/5067148#M1177307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-26T09:47:37Z</dc:date>
    </item>
  </channel>
</rss>

