theUturn theUturn - 1 year ago 71
Objective-C Question

how to replace unicode "&aring" with norwegian character å

I want to replace the unicode:

with Norwegian character
but the following code is not helping:

[unq1 stringByReplacingOccurrencesOfString:@"å" withString:@"å" ];

Answer Source

It is working perfectly on my side, may be the problem is you have not save the result of this stringByReplacingOccurrencesOfString method. So try like this

unq1 = [unq1 stringByReplacingOccurrencesOfString:@"å" withString:@"å"];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download