Posted on 2006-11-20
I'm taking a line of input from an external file and parsing the comma delimited data using the SPLIT command as follows:
var strLatLon = content.split(","); // Decimal LatLon
The command retrieves the expected data from the input string, but I am losing the degrees symbol from the data. The following is an example of the LatLon I am trying to capture:
"N 42° 45.103;W 71° 29.167" (data is quoted in the input file, I do want to collect the LatLon as a pair as a single variable)
When I display the value: alert (strLatLon), I see a BLOCK in the position of the degrees symbol.
"N 42� 43.743;W 71� 26.850"
Can someone please suggest an approach which will preserve (or restore) the degrees symbol in this string?