This is the problem: 45°38’14.07″
How can escape it (Struts action read an XLS that made a string. This string is the param of array in js).
Or without escaping.. how can I use it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not sure if this answers your question, but in JSON notation, this would be escaped as:
Notice that I’ve used the unicode for the angle (code: 0xb0 according to http://tlt.its.psu.edu/suggestions/international/bylanguage/mathchart.html) and escape the double quote. Hopefully that’s helpful. Depending on how you’re going to use it, you could also represent the degree symbol as
°for input into HTML.So if initializing an array, you’d want something like this: