aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Hotline/Hotline/HotlineProtocol.swift3
1 files changed, 3 insertions, 0 deletions
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