You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Sam Carleton <sc...@miltonstreet.com> on 2009/04/11 05:27:07 UTC

apos not getting encoded

I can never get the terminology straight, but what I am expecting is this:

<night>I like to eat M&amp;M&apos;s</night>

but when I call

adb_nightType_set_nightType( pNight, env, "I like to eat M&M\'s");

The result is:

<night>I like to eat M&M's</night>

How do I get it to encode the string?

Sam

Re: apos not getting encoded

Posted by Sam Carleton <sc...@miltonstreet.com>.
The answer:

axutil_xml_quote_string()

On Fri, Apr 10, 2009 at 11:27 PM, Sam Carleton
<sc...@miltonstreet.com>wrote:

> I can never get the terminology straight, but what I am expecting is this:
>
> <night>I like to eat M&amp;M&apos;s</night>
>
> but when I call
>
> adb_nightType_set_nightType( pNight, env, "I like to eat M&M\'s");
>
> The result is:
>
> <night>I like to eat M&M's</night>
>
> How do I get it to encode the string?
>
> Sam
>
>
>