From c7b8cb1477139da834a5ceef051d9df375bfeb03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Wed, 25 Mar 2015 15:44:37 -0700 Subject: =?UTF-8?q?Assume=20UTF-8=E2=80=93encoded=20symbol=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Followup to 00245a92be94feea4df581fe4d4cc38156f453b4 (#1107). --- platform/ios/MGLMapView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform') 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]; -- cgit v1.2.1