From a1ab15155846932af41907c4c3a66ef489a29c2c Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Fri, 16 May 2025 23:25:55 +0200 Subject: Encode as macRoman --- Hotline/Hotline/HotlineProtocol.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Hotline/Hotline/HotlineProtocol.swift b/Hotline/Hotline/HotlineProtocol.swift index adcf7e5..52f4b1f 100644 --- a/Hotline/Hotline/HotlineProtocol.swift +++ b/Hotline/Hotline/HotlineProtocol.swift @@ -627,6 +627,9 @@ struct HotlineTransactionField { encrypt: Bool = false ) { var bytes = [UInt8](string.utf8) + if let macRomanData = string.data(using: .macOSRoman, allowLossyConversion: true) { + bytes = [UInt8](macRomanData) + } if encrypt { bytes = string.utf8.map { char in return 0xFF - char -- cgit