V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
xdeng
V2EX  ›  问与答

发现一个 iOS 新文件系统 APFS 的问题,求高手回答。。。

  •  
  •   xdeng · 2017-03-30 17:53:24 +08:00 · 1550 次点击
    这是一个创建于 2599 天前的主题,其中的信息可能已经有所发展或是发生改变。

    问题如下

    在 iOS10.3 设备上创建的是两个文件,在 iOS10.3 以下设备上创建的是一个文件,是不是苹果 iOS 新文件系统 APFS 换了编码了?还是忘了写转换函数?求高手指点。。。

        char n[] = {0x72, 0x69, 0xcc, 0x81, 0x61, 0x2e, 0x63, 0x0};
        char nn[] = {0x72, 0xc3, 0xad, 0x61, 0x2e, 0x63, 0x0};
        
        NSString *docPath = [NSHomeDirectory() stringByAppendingString:@"/Documents/"];
        
        const char *p = [docPath cStringUsingEncoding:NSUTF8StringEncoding];
        
        char tmp[1024] = {0};
        strcpy(tmp, p);
        strcat(tmp, n);
        
        FILE *fn = fopen(tmp, "wb+");
        fclose(fn);
     
        char tmp1[1024] = {0};
        strcpy(tmp1, p);
        strcat(tmp1, nn);
        
        FILE *fnn = fopen(tmp1, "wb+");
        fclose(fnn);
    
    

    我该如何解决这个问题。。。

    5 条回复    2017-03-31 11:00:21 +08:00
    Dashit
        1
    Dashit  
       2017-03-30 18:01:34 +08:00   ❤️ 1
    xdeng
        2
    xdeng  
    OP
       2017-03-30 18:02:05 +08:00
    @Dashit 求详解 怎么解决?
    66450146
        3
    66450146  
       2017-03-30 18:05:56 +08:00   ❤️ 1
    @xdeng AFPS 不做 unicode normalization 了,如果需要这个功能的话得自己做
    xdeng
        4
    xdeng  
    OP
       2017-03-30 18:08:17 +08:00

    xdeng
        5
    xdeng  
    OP
       2017-03-31 11:00:21 +08:00
    @Dashit
    @66450146 谢谢解答,问题解决了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   974 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:14 · PVG 06:14 · LAX 15:14 · JFK 18:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.