theUturn theUturn - 3 months ago 8
Objective-C Question

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

I want to replace the unicode:

&aring
with Norwegian character
å
but the following code is not helping:

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

Answer

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:@"å"];