Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7933467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:20:35+00:00 2026-06-03T21:20:35+00:00

I use FTP to list the file attributes on the server. I request the

  • 0

I use FTP to list the file attributes on the server. I request the name of file and put them into an array. I print the array directly like this:

NSLog(@"%@", array); 

What I got is like this:

\U6587\U4ef6\U540d\Uff1afilename.txt
\U6587\U4ef6\U540d\Uff1afilename1.txt
......

When I want to print the Unicode “\U6587\U4ef6\U540d\Uff1a” to see what it is, I got the compiling error: “incomplete universal character name”.

However, If I print the name instead of the whole array, I can get the name correctly without the Unicode. But I need to do something with the name in the array. I want to know why the Unicode is there, and is it proper to just remove the Unicode then to do something with the real file name?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:20:38+00:00Added an answer on June 3, 2026 at 9:20 pm

    In C99, and therefore presumably Objective C too, there are two Unicode escapes:

    \uXXXX
    \UXXXXXXXX
    

    The lower-case u is followed by 4 hex digits; the upper-case U is followed by 8 hex digits (of which, the first two should be zeroes to be valid Unicode (and the third should be 0 or 1; the maximum Unicode code point is U+10FFFF).

    I believe that if you replace the upper-case U‘s with lower-case u‘s, you should get the code to compile.

    On my Mac OS 10.7.4 system, compiling with GCC 4.7.0 (home built), I compiled this code:

    #include <stdio.h>
    
    int main(void)
    {
        char array[] = "\u6587\u4ef6\u540d\uff1a";
        puts(array);
        return 0;
    }
    

    and got this output:

    • 文件名:

    I can’t answer why the characters are there, but the colon-like character at the end suggests that the site might be preceding the actual file name with a tag of some sort (analogous to ‘file:’).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using and getting a file from ftp server. But when I use
I use FTP raw commands to upload file to a FTP server, I start
I am attempting to use FTP in Powershell to upload a file. I am
I have a few syncing routines that I'd like to use for FTP uploads.
I have a FTP server which I use for Linux repository for RPM packages.
I would like to use the same code for copying files to an FTP
I'm using FtpWebRequest to connect to an FTP server and I can use WebRequestMethods.Ftp.ListDirectoryDetails
I am trying to to get all directories' name from an FTP server and
i user APACHE with PHP. if we use FTP program like filezilla. we will
How can I use Net::FTP to get a file matching a pattern? Basically what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.