08-08-2017 06:11 AM
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:
but the registration page instead showed this as the name:
|
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>
Solved! Go to Solution.
08-10-2017 09:15 AM
Change your encoding to UTF-8 and you should be able to encode special characters, in UTF8
<?xml version="1.0" encoding="UTF-8"?>
08-10-2017 09:15 AM
Change your encoding to UTF-8 and you should be able to encode special characters, in UTF8
<?xml version="1.0" encoding="UTF-8"?>
08-10-2017 09:51 AM
Thank you. I tried UTF-8 without success. It resulted in the same character conversion that I saw with the original encoding.
08-10-2017 09:53 AM
Is your app/tool actually encoding the values into UTF-8 when they are posted to the XML Service URI?
08-11-2017 05:59 AM
No, it was not. Thank you. This is now resolved.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide