Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[ios] callNativeModule support unicode characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Txink committed Nov 23, 2020
1 parent 98704f8 commit cb0e5b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Bridge/WXCoreBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static void MergeBorderWidthValues(NSMutableDictionary* dict,
if ([object isKindOfClass:[NSDictionary class]] || [object isKindOfClass:[NSArray class]]) {
NSString *jsonString = [WXUtility JSONString:object];
returnValue->type = ParamsType::BYTEARRAYJSONSTRING;
returnValue->value.byteArray = generator_bytes_array(jsonString.UTF8String, jsonString.length);
returnValue->value.byteArray = generator_bytes_array(jsonString.UTF8String, [jsonString lengthOfBytesUsingEncoding:NSUTF8StringEncoding]);
}
break;
}
Expand Down

0 comments on commit cb0e5b5

Please sign in to comment.