2

So, I have a project where I'm grabbing Pinterest pins through the api. I'm able to access everything fine, but when it gets the pinner's description, it replaces emojis as well as some punctuation with codes like the one above, which by looking at the pin on the Pinterest app, I figured out points to a peace sign. When I first saw these, I was just typing up

   pinDescription.stringByReplacingOccurrencesOfString("☮", withString: "☮")

for every single instance. It works as intended, but that's going to be nearly impossible to do for every emoji. I haven't found anything using these kinds of codes while I was searching for a solution, but this is the closest to what I'm looking for here.

Community
  • 1
  • 1
Rachel Harvey
  • 1,719
  • 2
  • 15
  • 23

0 Answers0