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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:44:10+00:00 2026-05-30T04:44:10+00:00

I got strings like this from audio stream as titles: Þòà – Ïàäàòü I

  • 0

I got strings like this from audio stream as titles:

Þòà – Ïàäàòü

I know that this string in russian. And I need to show it correctly in UILabel.
I try this:

NSData *data = [value dataUsingEncoding:NSNonLossyASCIIStringEncoding];
NSString *goodValue = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];

Now goodValue contains next value:

\336\362\340 – \317\340\344\340\362\374

Number of characters as I see the save with original. But how I should convert it into normal string for using as text in UILabel?

Thanks in advance.

  • 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-05-30T04:44:11+00:00Added an answer on May 30, 2026 at 4:44 am

    I wrote some code for iterating and logging all possible combinations.

    At first I found list of all possible encodings in NSString.h and set it to C array of possible encodings:

     int encodings[] = {
        NSASCIIStringEncoding,
        NSNEXTSTEPStringEncoding,
        NSJapaneseEUCStringEncoding,
        NSUTF8StringEncoding,
        NSISOLatin1StringEncoding,
        NSSymbolStringEncoding,
        NSNonLossyASCIIStringEncoding,
        NSShiftJISStringEncoding,
        NSISOLatin2StringEncoding,
        NSUnicodeStringEncoding,
        NSWindowsCP1251StringEncoding,
        NSWindowsCP1252StringEncoding,
        NSWindowsCP1253StringEncoding,
        NSWindowsCP1254StringEncoding,
        NSWindowsCP1250StringEncoding,
        NSISO2022JPStringEncoding,
        NSMacOSRomanStringEncoding,
        NSUTF16StringEncoding,
        NSUTF16BigEndianStringEncoding,
        NSUTF16LittleEndianStringEncoding,
        NSUTF32StringEncoding,
        NSUTF32BigEndianStringEncoding,
        NSUTF32LittleEndianStringEncoding
    };
    

    And now let’s iterate and show all possible results:

    int numberOfEncodings = 23;
    
    for (int i = 0; i < numberOfEncodings; i++) {
        NSLog(@"=============== %d =============", encodings[i]);
        constchar *asd = [value cStringUsingEncoding:encodings[i]];
        if (asd == NULL) {
            NSLog(@"asd == NULL");
        } else {
            for (int j = 0; j < numberOfEncodings; j++) {
                NSString *str = [NSStringstringWithCString:asd encoding:encodings[j]];
                NSLog(@"%d: %@", encodings[j], str);
            }
        }
    }
    

    After that I look through results and found good string. That’s all =)

    note: all encodings are values of NSStringEncoding enum. And you could think that you could iterate from 0 to number of encodings instead of defining encodings[] array. But you shouldn’t do this, because encoding values are not ascending ints. For example NSMacOSRomanStringEncoding = 30 and some of this encoding are aliases for another. Than better to define array of possible encodings.

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

Sidebar

Related Questions

I got a string from parsing a XML file which looks like this: Fri,
Hi I'm struggling with some regex I've got a string like this: a:b||c:{d:e||f:g}||h:i basically
I've got a class like this: [XmlRoot(channel)] public class Channel { [XmlElement(title)] public String
I've got this date time string: post[date] = 2007-07-18 10:03:19 I'd like to extract
I've got a generic dictionary Dictionary<string, T> that I would like to essentially make
I've got a LinkButton control in a user control like this (Accordion is from
I query my mySql database table and retrieve text strings that look like this:
I've got an object which was deserialized from JSON. It looks like this, introspected
How to combine values (strings) in XPath? Say we've got something like this: <entry>
I have a jagged array that looks like this: string[][] list = new string[d.Rows.Count

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.