We are using Axis1 checked out from subversion along with Xerces-C Version 
2.2.0.

We are having trouble using Axis to retrieve UTF-8 characters. Is there any 
additional setup needed?

Here is where we think things are going arye.

axis\xml\xerces\XMLParserXerces.cpp::parse(bool ignoreWhitespace, bool peekIt)
About line 125 there is this:
// parse next token
m_bCanParseMore = m_pParser->parseNext(m_ScanToken);

It looks like the parseNext() function is converting 3 bytes of Unicode 
characters to 1 byte.

Here is the hex data being returned from our web service:
00000808h: EF A4 85                                        ; ï¤...

I have also attached the xml that was returned from the web service 
(xmlout14670.txt, this is logged on the server).


Ryan McCullough | RightNow Technologies | Integration Tools Engineer
406-556-3162 office | Bozeman, MT | 
rmccullo...@rightnow.com<mailto:rmccullo...@rightnow.com> | 
http://www.rightnow.com<http://www.rightnow.com/>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
               xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  <soap:Header><ResponseHeader 
xmlns="urn:obj.api.rightnow.com"><Version>9.2.0.112</Version></ResponseHeader></soap:Header>
     <soap:Body>
      <exec_rv xmlns="urn:obj.api.rightnow.com" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<transaction_rv errlog_cnt="0">
<contact_get_rv><addr>
<country_id>1</country_id>
</addr>
<alt_name>
</alt_name>
<banner>
</banner>
<c_id>159</c_id>
<created>2009-01-30T23:58:59Z</created>
<custom_field><cf_item>
<cf_id>2</cf_id>
<data_type>8</data_type>
<val_int xsi:nil="true" />
</cf_item>
<cf_item>
<cf_id>14</cf_id>
<data_type>2</data_type>
<val_int xsi:nil="true" />
</cf_item>
<cf_item>
<cf_id>4</cf_id>
<data_type>1</data_type>
<val_int xsi:nil="true" />
</cf_item>
<cf_item>
<cf_id>5</cf_id>
<data_type>2</data_type>
<val_int xsi:nil="true" />
</cf_item>
<cf_item>
<cf_id>79</cf_id>
<data_type>5</data_type>
<val_str xsi:nil="true" />
</cf_item>
<cf_item>
<cf_id>22</cf_id>
<data_type>5</data_type>
<val_str xsi:nil="true" />
</cf_item>
<cf_item>
<cf_id>23</cf_id>
<data_type>6</data_type>
<val_str xsi:nil="true" />
</cf_item>
<cf_item>
<cf_id>24</cf_id>
<data_type>2</data_type>
<val_int xsi:nil="true" />
</cf_item>
<cf_item>
<cf_id>25</cf_id>
<data_type>8</data_type>
<val_int xsi:nil="true" />
</cf_item>
<cf_item>
<cf_id>26</cf_id>
<data_type>1</data_type>
<val_int xsi:nil="true" />
</cf_item>
<cf_item>
<cf_id>27</cf_id>
<data_type>3</data_type>
<val_int xsi:nil="true" />
</cf_item>
<cf_item>
<cf_id>28</cf_id>
<data_type>7</data_type>
<val_date xsi:nil="true" />
</cf_item>
<cf_item>
<cf_id>29</cf_id>
<data_type>4</data_type>
<val_dttm xsi:nil="true" />
</cf_item>
</custom_field>
<disabled>0</disabled>
<email>
<addr>sm...@rightnow.com.invalid</addr>
<invalid>0</invalid>
</email>
<email_alt1>
<invalid>0</invalid>
</email_alt1>
<email_alt2>
<invalid>0</invalid>
</email_alt2>
<name>
<first>串串</first>
<last>Smith</last>
</name>
<rule_state>73</rule_state>
<source><lvl_id>32002</lvl_id>
<lvl_id>1002</lvl_id>
</source>
<state>
<css>1</css>
<ma>0</ma>
<sa>0</sa>
</state>
<updated>2009-02-02T23:34:48Z</updated>
</contact_get_rv>

</transaction_rv>
    </exec_rv>
  </soap:Body>
</soap:Envelope>

Reply via email to