Also with Swift, if I put this in a playground:
import Cocoa
var formatter = DateFormatter()
var locale = Locale(identifier: "en_US_POSIX")
formatter.locale = locale
formatter.dateStyle = .medium
formatter.timeStyle = .long
var dateString = formatter.string(from: Date.now)
var data = dateString.data(using: .utf8)
print("\(dateString)")
print("\([UInt8](data!))")
We can see that on a beta OS it's got the non-ASCII space, and on Ventura it's got 0x20.
Topic:
App & System Services
SubTopic:
Core OS
Tags: