mapbox/utfgrid-spec — Issue #1: trouble with demo.json validation
Author: tschaub
Created: 2012-02-28 00:23:49+00:00
State: open

I'm trying to [write some tests](https://github.com/tschaub/openlayers/blob/19a11561e82bb99eff2d005cbe3b8287b68872f6/tests/Tile/UTFGrid.html#L200) for a browser implementation that use the [demo.json](https://github.com/mapbox/mbtiles-spec/blob/master/1.1/demo.json) described in the spec. I'm seeing trouble once I hit row 215, col 222 - the 55262th id. If I understand right, this should be "encoded" as 55296. I notice that [some parsers](https://www.google.com/search?q=utf8+55296+57343) mention 55296 to 57343 as a range where UTF-16 surrogate pairs cannot be converted to UTF-8.

I'm serving up my tests (with ``) and demo.json with Apache to Chrome 17 (same behavior on Firefox 10). Thanks for any hints on what might be up. I'm not entirely confident this is UTF-8 through and through.