09-07-2017 05:46 AM
I am trying to search files using ampersand.
I have created a file with name "abc & xyz" on a fresh installation of alfresco 5.2.
now, I am trying to search the file but it is not considering ampersand.
I am able to search with 'abc' or 'abc*' because it is reading characters "abc" but when I try to search with 'abc &' or abc &* or &, its not working.
when trying to search with abc & abc, the value goes on url - "abc %26 abc" instead of "abc & abc".
can anyone help me with handling ampersand for searching ?
thanks in advance.
09-07-2017 12:04 PM
Hi,
I think you must to escape the character '&'. Please, try something like this:
'abc \&'
"abc \&"
Regards,
clv
09-07-2017 12:10 PM
Hi, Monica kumari
when you trying to search with abc & abc, the value goes on url - "abc %26 abc" instead of "abc & abc" because
While searching you got' abc %26 abc 'in url because it encodes the string which you have entered.
Please refer this
How to search text with special character?
UTF-8 Character encoding issue
Thanks,
Kalpesh
09-14-2017 04:45 PM
Hi
It is not clear what you are trying do. If the & is critical in the query you need to quote the string and ask for an exact match. Just escaping the \& will not do much ...
="abc & xyz"
Andy
Explore our Alfresco products with the links below. Use labels to filter content by product module.