-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emojis get escaped when serializing #400
Comments
I encountered the exact same issue here. I'm using Yams.dump() to dump a dictionary: import Foundation
import Yams
let testDict = ["testkey": "🔰test value with emoji"]
let desktopFolder = FileManager.default.urls(for: .desktopDirectory, in: .userDomainMask).first!
let ymlData = try Yams.dump(object: testDict).data(using: .utf8)!
try ymlData.write(to: desktopFolder.appending(path: "test.yaml")) The result:
Has anyone found a solution to this problem? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: