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 8977559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:23:57+00:00 2026-06-15T19:23:57+00:00

I have strange behavior with UTF8 encoding: For example: when i run on simulator

  • 0

I have strange behavior with UTF8 encoding:

For example: when i run on simulator

NSString *uni   = @"\U0001d11e";
NSString *uni2  = [[NSString alloc] initWithUTF8String:"\xF0\x9D\x84\x9E"];
NSString *uni3  = @"";
NSLog(@"unicode: %@ and %@ and %@",uni, uni2, uni3);

I’ve got the expected result:

unicode:  and  and 

But when i ran it into a real device, here the output:

unicode: ùÑû and ùÑû and ùÑû

I can’t understand why. It is a compilation workaround, or something that i didn’t understood?
I know that the @”” construct can only take ASCII characters. But why this is working on simulator? Do you have an idea on how i can make it works on real device? Thx

  • 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-15T19:23:59+00:00Added an answer on June 15, 2026 at 7:23 pm

    Everything is working fine, the bytes are received correctly. It’s just that the device is decoding them as Mac OS Roman instead of UTF-8. All you need to do is to specify to the device that the input is UTF-8. If you don’t know how to do that, then you should provide more details.

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

Sidebar

Related Questions

I have some strange behavior redirecting stdout and stderr from s3cmd. For example: $
I have realy strange behavior. I have this code (I remove unrelated code). $(function()
I have this strange behavior in my JSP page: I have two Integer variables
I have a strange behavior with my WPF ListView Control. ListViews ItemSource is Observable
I have trouble with strange behavior of for..in cycle in JavaScript. I have the
I have a very strange behavior with Request.Form . Here are two IIS 7
I have a really strange behavior with highchart (via rails plugin): The graph display
I have a horizontal animated menu that has a strange behavior because it works
I'm seeing strange behavior when scaling Delayed::Job workers on Heroku. I have a few
I am getting a strange behavior for multi-part form. I have a simple HTML

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.