I'm designing an API, but here is a problem:
?merchantCategoryName=[Adult,Fantasy,Mac]
&mappedCategoryID=[701,80,22]
&merchantID=36330&outputType=xml
This is ideal situation, but what if merchantCategoryName
contains a comma like this: (Ad,ult
is a merchantCategoryName
)
?merchantCategoryName=[Ad,ult,Fantasy,Mac]
&mappedCategoryID=[701,80,22]
&merchantID=36330&outputType=xml
Then will be disorder, if I use base64
it seems not work, if I use htmlentities
it seems ,
's entity is ,
. so how can I solve this?