Selaa lähdekoodia

修复Portfolio从数据库取文本数据为乱码。

Pen Li 9 vuotta sitten
vanhempi
commit
ee985ff310

BIN
RedAnt ERP Mobile/RedAnt ERP Mobile.xcworkspace/xcuserdata/macmini1.xcuserdatad/UserInterfaceState.xcuserstate


+ 2 - 1
RedAnt ERP Mobile/common/Functions/offline/OLDataProvider.m

@@ -4741,7 +4741,8 @@
         tx = "";
     }
    
-    NSString *text = [NSString stringWithFormat:@"%s",tx];
+//    NSString *text = [NSString stringWithFormat:@"%s",tx];
+    NSString *text = [NSString stringWithCString:tx encoding:NSUTF8StringEncoding];
     
     if (!text) {
         text = @"";