Problem with the Ratings controls on items having special
character (i.e. ~!@#$%^&*()-+=[]';,./{}\":<>?"),
Rating is not working if “Title” field contains any of the
above special character.
After delving in the Rating.js found that there is line of code
encodeURI(this.Title)
So when it tries to encode uri from Title with special character it fails to encode and store the result in social db.
After delving in the Rating.js found that there is line of code
encodeURI(this.Title)
So when it tries to encode uri from Title with special character it fails to encode and store the result in social db.
Workaround :
1. Remove the default “Title” field.
1. Remove the default “Title” field.
2. Put validation in “Title” field as pointed by http://consultingblogs.emc.com/mattlally/archive/2012/01/06/sharepoint-2010-validate-special-characters.aspx
3. You can modify the ratings.js replace encodeURI(this.Title) with
encodeURIComponet(this.Title) . (Although not recommended as any SharePoint patch might update these files...)
3. You can modify the ratings.js replace encodeURI(this.Title) with
encodeURIComponet(this.Title) . (Although not recommended as any SharePoint patch might update these files...)