diff --git a/cocos2dx/platform/iphone/CCXBitmapDC.mm b/cocos2dx/platform/iphone/CCXBitmapDC.mm index 648dd9fd47..effaf1d3f2 100644 --- a/cocos2dx/platform/iphone/CCXBitmapDC.mm +++ b/cocos2dx/platform/iphone/CCXBitmapDC.mm @@ -51,7 +51,7 @@ static void initWithString(const char *content, const char *fontName, float size } alignment = UITextAlignmentCenter; - string = [[NSString alloc] initWithCString:content]; + string = [[NSString alloc] initWithUTF8String:content]; name = @"Thonburi"; dimensions = [string sizeWithFont:[UIFont fontWithName:name size:size]];