I have a string that's coming from an MSSQL PHP query that's interpreting spaces in some varchar rows as +
. So a company name like My Company - Springfield, Illinois
is delivered to me as My+Company+-+Springfield,+Illinois
. What encoding is this? Are there other characters that might be getting encoded in this way, or will a simple
var a = "My+Company+-+Springfield,+Illinois"
var newstr = a.replace(/\+/g," "); //My Company - Springfield, Illinois
suffice? But that will fail on company's with +
in the name. What encoding is this and how can I work with it?