Questions tagged [nsutf8encoding]
11 questions
2
votes
1 answer
6 byte emojis from NSUTF8StringEncoding
I am confused about the byte representation of an emoji encoded in UTF8. My understanding is that UTF8 characters are variable in size, up to 4 bytes.
When I encode the ❤️ emoji in UTF8 on iOS 13, I get back 6 bytes:
NSString* heartEmoji =…

TheNextman
- 12,428
- 2
- 36
- 75
1
vote
0 answers
what do i do wrong with encoding hexadecimal "40" in Python?
i came across a binary file (i guess) i try to generate using my script, so maybe i do it perfectly wrong, but so far it worked. Now i'm stuck and don't feel i can understand (and as a noob to binary files, can't name the problem correctly to google…

peta
- 11
- 2
1
vote
0 answers
NSUTF8StringEncoding problem in nsdata to nsstring convertion
I have a Mac Os App that retrieve the html code of a web page and put it in a NSString. The code is:
NSString*linkURL=[NSString stringWithFormat:@"https://www.example.com"];
NSURL *targetURL=[NSURL URLWithString:linkURL];
NSData *htmlData = [NSData…

Max Colla
- 61
- 4
1
vote
1 answer
Hey so im getting a - Fatal error: "Uncaught Error: Call to undefined function utf8_encode() in"
VPS Info:
Debian Stretch 9
Packages Installed: https://hastebin.com/erugofatab.apache
Services Running: https://hastebin.com/nekunukuza.cs
Okay so im having issues with utf8_encode php, when clicking on a part of my website I got the error, I was…

freshskates
- 46
- 4
1
vote
2 answers
JSON serialization double quote (") and single (') quote issue in iOS
I'm facing JSON encoding issue.
I have submitted my data to server on below formate to save remarks.
{
Remarks = "test apple """ ";
}
Then while fetching the data from the server, I'm receiving different formate like
output:
{
Remarks = "test…

Yalamandarao
- 3,852
- 3
- 20
- 27
0
votes
0 answers
decrypting mail from url in react
I am getting a mail through url it is encrypted, i passed the mail on the api but since it is encrypted the api is sending bad request. The back end is dot net and they used Utf8Encoding to encrypt the mail. React is the front end and i used…

Sai Krishna
- 21
- 1
0
votes
0 answers
convert from windows-1254 to unicode in LUA
I have a question about sending and receiving data with special chars. (Turkish Character)
I am having trouble converting Turkish characters. For example "Ğğ Üü İı Şş Öö Çç" when I try to get these characters out, it transforms the characters like…

Ali YILDIZ
- 1
- 1
0
votes
0 answers
How to convert JSON Data (Dictionary) to JSON String without changing number of decimal points in Objective C?
When I convert JSON data which contains double value like 4999.99 to JSON String it outputs with different value with multiple decimal points like 4999.9899999999998
I used the following code for JSON NSJSONSerialization and encoding.
jsonData =…

Malisha De Silva
- 393
- 2
- 10
0
votes
0 answers
Convert 1 form of emoticon in other form
I am extracting a tweet from twitter which has an emoticon in it using python and storing it in csv file. The emoticon is represented in "\ud83d\ude01" form. I want to convert it into Unicode format (U+1F603), how to convert it??
Thanks for your…

HARSH GUPTA
- 9
- 2
0
votes
1 answer
What are different between NSUTF8StringEncoding and NSUTF16StringEncoding?
I am trying to understand about Encoding, as far i know utf-8 encode mean it t uses 8-bit blocks to represent a character.
NSString *NSUTF8Encoding = [[NSString alloc]initWithCString:"String" encoding:NSUTF8StringEncoding];
NSString…

Dharmesh Mansata
- 4,422
- 1
- 27
- 33
0
votes
1 answer
Logging HTTPRequest NSUTF8Encoding
When trying to debug a NSURLRequest with POST data I use this to write to my log:
NSLog(@" Body: %@", [[NSString alloc] initWithData:urlRequest.HTTPBody encoding:NSUTF8StringEncoding]);
Which outputs the data like so:
Body:…

PruitIgoe
- 6,166
- 16
- 70
- 137