I have created a JS template with this code to output GeoJSON for our Google Maps;
{
"type": "FeatureCollection",
"features": [
{exp:channel:entries
channel="places"
}
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
{longitude},
{latitude}
]
},
"properties": {
"name": "{title}",
"url": "{url_title}",
"address": "{addressline1}, {if addressline2}{addressline2}, {/if}{city}, {postalcode}",
"icon": "/static/markers/place.png"
}
},{/exp:channel:entries}
]
}
However, some of the titles have an apostrophe or accented characters, which are being included in the GeoJSON like so;
Bar ‘67
Café and Bar
I was wondering if anyone knows how I can correct this?
Thanks
Content-Type:text/javascript
and no encoding. – doubleplusgood Oct 8 '14 at 13:41