You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by Better-Jiao <gi...@git.apache.org> on 2017/10/11 08:35:55 UTC
[GitHub] cordova-plugin-file-transfer issue #177: fix Chinese words error in filename
Github user Better-Jiao commented on the issue:
https://github.com/apache/cordova-plugin-file-transfer/pull/177
I get the same question and i had solve it. The code `NSString* filePath = [source hasPrefix:@"/"] ? [source copy] : [(NSURL *)[NSURL URLWithString:source] path];` in function `- (void)fileDataForUploadCommand:(CDVInvokedUrlCommand*)command` , if the file path include chinese , the `filePath` will return nil , so the `source` should be encode by utf-8.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org