cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3447
Views
1
Helpful
4
Replies

Special Characters

Nicholas1
Level 1
Level 1

Is the XML API is designed to accept special characters?  If so, how do you use them?

I tried sending through a registration with this as the user name:

Test User 1  1ã 2é 3汉字 4

but the registration page instead showed this as the name:

Test User 1 1ã 2é 3汉字 4

As you can see, both of the Spanish characters were converted to a duet of special characters, and the Chinese characters were similar converted to a set of symbols.  We need to be able to support these foreign characters for our non-English webinars.

Do I just need to change the encoding, is this a change made at the account level, or are special characters just not supported?  For reference, my entire API call body is below.

Thanks,

Nicholas

<?xml version="1.0" encoding="ISO-8859-1"?>

<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <header>

        <securityContext>

            <webExID>xxxxxxxxxx</webExID>

            <password>xxxxxxxxxx</password>

            <siteID>xxxxxxxxxx</siteID>

            <siteName>xxxxxxxxxxxxxxxxxxxx</siteName>

        </securityContext>

    </header>

    <body>

        <bodyContent xsi:type="java:com.webex.service.binding.attendee.RegisterMeetingAttendee">

            <attendees>

                <person>

                    <name>Test User 1  1ã 2é 3汉字 4end</name>

                    <title>title</title>

                    <company>PM.com</company>

                    <address>

                        <addressType>PERSONAL</addressType>

                        <city>Pittsburgh</city>

                        <country>USA</country>

                    </address>

                    <email>nicholas@xxxxxxxxxxxxxxx.com</email>

                    <notes>notes 12345</notes>

                    <url>https://</url>

                    <type>VISITOR</type>

                </person>

                <joinStatus>ACCEPT</joinStatus>

                <role>ATTENDEE</role>

                <emailInvitations>false</emailInvitations>

                <sessionKey>123456789</sessionKey>

            </attendees>

        </bodyContent>

    </body>

</serv:message>

1 Accepted Solution

Accepted Solutions

ryanhunt
Level 5
Level 5

Change your encoding to UTF-8 and you should be able to encode special characters, in UTF8

<?xml version="1.0" encoding="UTF-8"?>

View solution in original post

4 Replies 4

ryanhunt
Level 5
Level 5

Change your encoding to UTF-8 and you should be able to encode special characters, in UTF8

<?xml version="1.0" encoding="UTF-8"?>

Thank you.  I tried UTF-8 without success.  It resulted in the same character conversion that I saw with the original encoding.

Is your app/tool actually encoding the values into UTF-8 when they are posted to the XML Service URI?

No, it was not.  Thank you.  This is now resolved.