+ Start a Discussion
Saswat MohantySaswat Mohanty 

Character Encoding issue

We have certain accounts in the org which contain "\" in their names. Also, there is a 3rd party mobile application which is being managed in the org for visit record sync,upload and download purposes. However, when you schedule visit from the calendar with such accounts and download them to mobile app and complete, sync the records it gives the error "An Invalid XML character (0*0) found in the element content of the document".

We saw that in online, for such visits the subject line is being created with additional space of characters and if you remove them by pressing backspace for 2 times, then the subject line gets corrected and accordingly the error is removed. However, the same issue did not happen for any accounts containing forward slash /.

Please suggest how to overcome the issue of invalid xml character
Praful GadgePraful Gadge
Hi Saswat,

I also faced this issue before few weeks. I found a solution on stackoverflow (http://stackoverflow.com/a/11696087), it says we should restrict Users from adding backslash. We have written a trigger which removes this bacslash from name and update record. You can also add a Validation Rule to restrict users from adding backslash.

If this post is your solution, kindly mark this as the solution to the post so that others may benefit.

Praful G.