From 28dc26278a11b38683146e653ceb9727611288c9 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Wed, 17 Jan 2024 23:21:58 -0800 Subject: Send message board posts encoded with Mac OS Roman string encoding. I think this needs to be looked at further though... is UTF-8 really not an option? Hmm. --- .../hotlineRed.colorset/Contents.json | 38 ---------------------- Hotline/Hotline/HotlineClient.swift | 2 +- 2 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 Hotline/Assets.xcassets/hotlineRed.colorset/Contents.json diff --git a/Hotline/Assets.xcassets/hotlineRed.colorset/Contents.json b/Hotline/Assets.xcassets/hotlineRed.colorset/Contents.json deleted file mode 100644 index 1f6e488..0000000 --- a/Hotline/Assets.xcassets/hotlineRed.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0x00", - "green" : "0x00", - "red" : "0xE1" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0x00", - "green" : "0x00", - "red" : "0xE1" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Hotline/Hotline/HotlineClient.swift b/Hotline/Hotline/HotlineClient.swift index 2048149..7006c59 100644 --- a/Hotline/Hotline/HotlineClient.swift +++ b/Hotline/Hotline/HotlineClient.swift @@ -490,7 +490,7 @@ class HotlineClient: NetSocketDelegate { } var t = HotlineTransaction(type: .oldPostNews) - t.setFieldString(type: .data, val: text) + t.setFieldString(type: .data, val: text, encoding: .macOSRoman) self.sendPacket(t) } -- cgit