{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiargiq374u25az3uv5iho56ubvfvawjf2djpmiwok6vcvyjvkoopq",
"uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mmirbqhnjo52"
},
"path": "/t/from-text-type-class-to-convert-from-text/14150#post_2",
"publishedAt": "2026-05-23T04:58:06.000Z",
"site": "https://discourse.haskell.org",
"tags": [
"System.OsString.encodeWith"
],
"textContent": "Bodigrim:\n\n> It uses UTF-8 when converting to binary types without an associated encoding.\n\nMinor nitpick: `from-text` converts `WindowsString` (and hence `OsString` on windows) to UTF-16 LE.\n\nIf you need other encodings, you can always use System.OsString.encodeWith.",
"title": "From-text: type class to convert from Text"
}