You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered the exact same issue here. I'm using Yams.dump() to dump a dictionary:
import Foundation
import Yams
lettestDict=["testkey":"🔰test value with emoji"]letdesktopFolder=FileManager.default.urls(for:.desktopDirectory, in:.userDomainMask).first!
letymlData=tryYams.dump(object: testDict).data(using:.utf8)!
try ymlData.write(to: desktopFolder.appending(path:"test.yaml"))
If a yaml string has emojis inside of it, after running
serialize
they are escaped in the final output.For example
this:
gets turned into
after going through a Yams.compose -> Yams.serialize cycle.
Here's a simple repro:
The text was updated successfully, but these errors were encountered: