Skip to main content
removed deprecated tag
Source Link

how How should iI remove +"+" from mya string url (Swift)URL

Question :: how to remove + from my string urlURL

Problem :: while calling api iAPI I am getting + symbol at the end of urlURL so how can iI remove that +

hereHere is my code which removing space:

extension String { func encodeURL() -> String { return self.stringByAddingPercentEncodingWithAllowedCharacters(.URLHostAllowedCharacterSet())! } } 

how should i remove + from my string url (Swift)

Question :: how to remove + from my string url

Problem :: while calling api i am getting + symbol at the end of url so how can i remove that +

here is my code which removing space

extension String { func encodeURL() -> String { return self.stringByAddingPercentEncodingWithAllowedCharacters(.URLHostAllowedCharacterSet())! } } 

How should I remove "+" from a string URL

Question :: how to remove + from my string URL

Problem :: while calling API I am getting + symbol at the end of URL so how can I remove that +

Here is my code which removing space:

extension String { func encodeURL() -> String { return self.stringByAddingPercentEncodingWithAllowedCharacters(.URLHostAllowedCharacterSet())! } } 
Post Closed as "Duplicate" by Vizllx, Eric Aya, holex, JAL, Drew
its not duplicate at all i want to remove + from my url. and that guy want to remove " " space
Source Link

Question :: how to remove + from my string url

Problem :: while calling api i am getting + symbol at the end of url so how can i remove that +

here is my code which removing space

extension String { func encodeURL() -> String { return self.stringByAddingPercentEncodingWithAllowedCharacters(.URLHostAllowedCharacterSet())! } } 

Question :: how to remove + from my string url

Problem :: while calling api i am getting + symbol at the end of url so how can i remove that +

here is my code which removing space

extension String { func encodeURL() -> String { return self.stringByAddingPercentEncodingWithAllowedCharacters(.URLHostAllowedCharacterSet())! } } 

Question :: how to remove + from my string url

Problem :: while calling api i am getting + symbol at the end of url so how can i remove that +

here is my code which removing space

extension String { func encodeURL() -> String { return self.stringByAddingPercentEncodingWithAllowedCharacters(.URLHostAllowedCharacterSet())! } } 
added 8 characters in body
Source Link
Kjuly
  • 35.3k
  • 22
  • 108
  • 120

Question :: how to remove + from my string url

Problem :: while calling api i am getting + symbol at the andend of url so how can i remove that +

here is my code which removing space

extension String {  func encodeURL() -> String { return self.stringByAddingPercentEncodingWithAllowedCharacters(.URLHostAllowedCharacterSet())!      } } 

}

Question :: how to remove + from my string url

Problem :: while calling api i am getting + symbol at the and of url so how can i remove that +

here is my code which removing space

extension String { func encodeURL() -> String { return self.stringByAddingPercentEncodingWithAllowedCharacters(.URLHostAllowedCharacterSet())! } 

}

Question :: how to remove + from my string url

Problem :: while calling api i am getting + symbol at the end of url so how can i remove that +

here is my code which removing space

extension String {  func encodeURL() -> String { return self.stringByAddingPercentEncodingWithAllowedCharacters(.URLHostAllowedCharacterSet())!      } } 
Source Link
Loading