mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Use UTF8 string encoding in ORTSaveCodeAndDescriptionToError(). (#22982)
Update from ASCII to UTF8 string encoding when creating the `NSString` description.
This commit is contained in:
parent
8c52fa3924
commit
e2356a0403
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ void ORTSaveCodeAndDescriptionToError(int code, const char* descriptionCstr, NSE
|
|||
if (!error) return;
|
||||
|
||||
NSString* description = [NSString stringWithCString:descriptionCstr
|
||||
encoding:NSASCIIStringEncoding];
|
||||
encoding:NSUTF8StringEncoding];
|
||||
|
||||
*error = [NSError errorWithDomain:kOrtErrorDomain
|
||||
code:code
|
||||
|
|
|
|||
Loading…
Reference in a new issue