I need convert string to utf8 , when I search I got this
let str = String(UTF8String: strToDecode.cStringUsingEncoding(NSUTF8StringEncoding))
some people said this add as String extension, where I should add this? and after that how I can get string with utf8 encode