C chrisinky Member Licensed User Longtime User Apr 10, 2018 #1 Hi - I have an app that shares much of the same code base between Android and iOS. Android version works perfect. The iOS portion is choking when a string is sent to the app containing a special character. In this case, it's "É”. I'm at a loss for why Android handles and iOS does not - is there a quick/easy way to address this or something I'm overlooking? Thanks, Chris
Hi - I have an app that shares much of the same code base between Android and iOS. Android version works perfect. The iOS portion is choking when a string is sent to the app containing a special character. In this case, it's "É”. I'm at a loss for why Android handles and iOS does not - is there a quick/easy way to address this or something I'm overlooking? Thanks, Chris
Erel B4X founder Staff member Licensed User Longtime User Apr 10, 2018 #2 chrisinky said: The iOS portion is choking when a string is sent to the app containing a special character. In this case, it's "É”. Click to expand... More information please. Please post the relevant code and the error message. Upvote 0
chrisinky said: The iOS portion is choking when a string is sent to the app containing a special character. In this case, it's "É”. Click to expand... More information please. Please post the relevant code and the error message.
C chrisinky Member Licensed User Longtime User Apr 10, 2018 #3 Code: Copy Sub ast_NewText(Text As String) 'this is fired when a complete packet comes from server to the ios app (waits for EOL char to determine that). process_message(Text) End Sub Error occurred on line: 28 (AsyncStreamsText) Error decoding data as string. Upvote 0
Code: Copy Sub ast_NewText(Text As String) 'this is fired when a complete packet comes from server to the ios app (waits for EOL char to determine that). process_message(Text) End Sub Error occurred on line: 28 (AsyncStreamsText) Error decoding data as string.
C chrisinky Member Licensed User Longtime User Apr 10, 2018 #4 So - I'm using AsyncStreamsText, a remote application is sending text packet. The same exact code works fine, and the É is displayed in the android app. In iOS it crashes. process_message is just a sub where I break apart the text packet but that doesn't fire as I believe things crash as soon as ast_newtext is raised.... Upvote 0
So - I'm using AsyncStreamsText, a remote application is sending text packet. The same exact code works fine, and the É is displayed in the android app. In iOS it crashes. process_message is just a sub where I break apart the text packet but that doesn't fire as I believe things crash as soon as ast_newtext is raised....
C chrisinky Member Licensed User Longtime User Apr 10, 2018 #5 Fixed it.... changed charset in the asyncstreamstext module to: Code: Copy Public charset As String = "iso-8859-1" Upvote 0
Fixed it.... changed charset in the asyncstreamstext module to: Code: Copy Public charset As String = "iso-8859-1"