diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-03-25 15:44:37 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2015-03-25 15:44:37 -0700 |
commit | c7b8cb1477139da834a5ceef051d9df375bfeb03 (patch) | |
tree | 3be1cc4e9f12b51de04df350eac204ef8d2076df | |
parent | 00245a92be94feea4df581fe4d4cc38156f453b4 (diff) | |
download | qtlocation-mapboxgl-c7b8cb1477139da834a5ceef051d9df375bfeb03.tar.gz |
Assume UTF-8–encoded symbol name
Followup to 00245a92be94feea4df581fe4d4cc38156f453b4 (#1107).
-rw-r--r-- | platform/ios/MGLMapView.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index e323141b25..30edd87977 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -1800,7 +1800,7 @@ CLLocationCoordinate2D latLngToCoordinate(mbgl::LatLng latLng) { symbol = [self.delegate mapView:self symbolNameForAnnotation:annotation]; } - std::string symbolName([symbol cStringUsingEncoding:[NSString defaultCStringEncoding]]); + std::string symbolName([symbol UTF8String]); // determine anchor point based on symbol CGPoint calloutAnchorPoint = [self convertCoordinate:annotation.coordinate toPointToView:self]; |