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

  • Home
  • SEARCH
  • 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 7800651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:42:21+00:00 2026-06-02T00:42:21+00:00

I have issue with letters when posting data to server NSString *url = [NSString

  • 0

I have issue with letters when posting data to server

NSString *url = [NSString stringWithFormat:@"http://100.200.30.400/iph/req.php?ph=%@&lat=%@&lon=%@&name=%@&stor=%@",self.phone,self.latitude,self.longtitude,self.name,self.stor];

       NSLog(@"url: %@",url);
       NSString *url2 ;
       url2 = [NSString stringWithUTF8String:[url UTF8String]];
        NSLog(@"url2: %@",url2);
       NSURL *reqUrl = [[NSURL alloc] initWithString:url2 ];
       NSURLRequest *request = [[NSURLRequest alloc] initWithURL:reqUrl];
       NSError *error;
       NSURLResponse *response;
       NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
       NSStringEncoding responseEncoding = NSUTF8StringEncoding;
       if ([response textEncodingName]) {
           CFStringEncoding cfStringEncoding = CFStringConvertIANACharSetNameToEncoding((CFStringRef)[response textEncodingName]);
           if (cfStringEncoding != kCFStringEncodingInvalidId) {
               responseEncoding = CFStringConvertEncodingToNSStringEncoding(cfStringEncoding); 
           }
       }
       [reqUrl release];
       NSString *dataString = [[NSString alloc] initWithData:data encoding:responseEncoding];
       //NSLog(@"dataString: %@",dataString);
       if ([dataString intValue] > 0 )
       {
          NSLog(@"EVERETHING IS GOOD");
       }

SO it works fine when self.name is in english but when i’m trying russian symbols it is not working. I tryed it with russian symbols in browser and it is works good thats why the problem is in russian symbol. What i have to do to make app work with russian symbols? THANKS

  • 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-02T00:42:22+00:00Added an answer on June 2, 2026 at 12:42 am

    So for my problem i used my friend’s function that return you string for URL

    HERE it is

    -(NSString *)encodeString:(NSString *)string {
    string = [string lowercaseString];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol1 withString:kEncodedSymbol1];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol2 withString:kEncodedSymbol2];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol3 withString:kEncodedSymbol3];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol4 withString:kEncodedSymbol4];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol5 withString:kEncodedSymbol5];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol6 withString:kEncodedSymbol6];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol7 withString:kEncodedSymbol7];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol8 withString:kEncodedSymbol8];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol9 withString:kEncodedSymbol9];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol10 withString:kEncodedSymbol10];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol11 withString:kEncodedSymbol11];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol12 withString:kEncodedSymbol12];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol13 withString:kEncodedSymbol13];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol14 withString:kEncodedSymbol14];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol15 withString:kEncodedSymbol15];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol16 withString:kEncodedSymbol16];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol17 withString:kEncodedSymbol17];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol18 withString:kEncodedSymbol18];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol19 withString:kEncodedSymbol19];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol20 withString:kEncodedSymbol20];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol21 withString:kEncodedSymbol21];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol22 withString:kEncodedSymbol22];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol23 withString:kEncodedSymbol23];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol24 withString:kEncodedSymbol24];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol25 withString:kEncodedSymbol25];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol26 withString:kEncodedSymbol26];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol27 withString:kEncodedSymbol27];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol28 withString:kEncodedSymbol28];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol29 withString:kEncodedSymbol29];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol30 withString:kEncodedSymbol30];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol31 withString:kEncodedSymbol31];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol32 withString:kEncodedSymbol32];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol33 withString:kEncodedSymbol33];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol34 withString:kEncodedSymbol34];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol35 withString:kEncodedSymbol35];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol36 withString:kEncodedSymbol36];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol37 withString:kEncodedSymbol37];
    string = [string stringByReplacingOccurrencesOfString:kCyrrilicSymbol38 withString:kEncodedSymbol38];
    return string;
    

    }

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

Sidebar

Related Questions

I have list of screen names that can be filtered by letter. The Issue
I have issue that is reproduced on g++. VC++ doesn't meet any problems. So
We are new to ROR, We have issue in creating Login/Logout process in ROR
Share your ideas please! I have issue to check the folder and convert a
I have an issue and I have looked long and hard over the Internet
I have an issue with dynamic, runtime controls. I create a group of controls
i have an issue i could use some help with, i have python list
I have an issue with how to organise the the screen layout for my
I have an issue with php where code works on on computer but wont
I have an issue using jquerys selectors when it comes to a page I

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.