in my app while fetch data from server i am getting image url and then i load that image in my imageview. its working perfectly but when my url getting arabic character its getting crash. so how can i find out that my urlstring is contain arabic character or not?
i only want A to Z and number and / and - and . in my urlstring
right now i just avoiding crash by this code but its not proper thing
this is my code
if (newimage.characters.count != 0)
{
if (newimage != "http://www.******.**/****/*****/uploads/2015/**/سيباستيان-فيتيل-فيراري-فورمولا-1.jpg")
{
ImageLoader.sharedLoader.imageForUrl(newimage) { (images, url) -> () in
if (images != nil)
{
print(images)
cell.image1.image = images!
}
}
}
else
{
print("XYZ")
}
}