0

i have string like: "YouTube - ‪VID 0001‬‏" and i want the string like : YouTube - VID 0001 that means i want to remove the unicodes.

is there a way to remove unicodes like ‪ in iphone apps, if so please help me.

Steve Gear
  • 757
  • 2
  • 16
  • 44

2 Answers2

1

Does this similar question and solution solve your problem?

I'd also recommend heeding the advice given in the comments on the linked question and making sure that you have a valid reason for not wanting unicode.

Community
  • 1
  • 1
xoebus
  • 812
  • 7
  • 18
0

Try this if you just want to remove the quotes (")

NSString *urString = @"\"YouTube - VID 0001‏\"";
NSString *formattedString = [urString stringByReplacingOccurrencesOfString:@"\"" withString:@""];
visakh7
  • 26,380
  • 8
  • 55
  • 69