How to create a category with '&' in title using REST API.
One answer
Comments
I need to add title like <title>Andaman & Nicobar</title>. The character i need is & itself, not '&'.
Hi Srinivasarao, What Piotr is trying to say is that the ampersand character is a special character so you need to replace it with a HTML entity, which is a special encoding. You will notice that HTML entities all start with the ampersand character. See the link "http://www.w3schools.com/html/html_entities.asp" and search for ampersand.
You will need to use <title>Andaman & Nicobar</title>to pass the ampersand character.
Simon
Ok, I just noticed that when I typed the ampersand entity, the forum parsed it and rendered the actual ampersand instead. This obviously made my answer confusing, sorry.
As Simon said, the entity should be & amp ; without the spaces.
Comments
Donald Nong
Jun 04 '14, 3:22 a.m.If you create such category via the web UI and the GET it using REST API, what is the RDF/XML representation of the title?
Also, out of curiosity, how exactly did you create a category using REST API?