Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Jun 06, 2020 7:24 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: 8bit Character interpretation.
PostPosted: Tue Aug 28, 2012 10:32 pm 
Offline

Joined: Fri Feb 15, 2008 2:19 am
Posts: 50
I have a web based project that receives a makes a pseudo web-service call and expects/receives a stream of binary data in response. My data is delimited by 0xFD - Chr(253) I was able to create a string and assign Chr(253) to it.
I could then take the binary stream and separate it into an array using the split command. This was working fine under 2011 R3 (and prior) -- but fails under 2012 R1. I found I needed to switch to using Memory Blocks. That's all fine and well..makes sense for binary data.... but it seems odd that it was working just fine under the previous version and not anymore. I didn't see that as a documented change anywhere.


Top
 Profile  
Reply with quote  
 Post subject: Re: 8bit Character interpretation.
PostPosted: Wed Aug 29, 2012 9:12 am 
Offline
User avatar

Joined: Mon Feb 05, 2007 5:21 pm
Posts: 600
Location: New York, NY
For binary data, the encoding of your string should be set to "nil". Perhaps it was set to UTF8 (or something else) where chr( 253), on its own, would make a deformed string?

You didn't mention, but with binary data, you should be using the "B" versions of the string functions anyway, so perhaps that would work.

_________________
Kem Tekinay
MacTechnologies Consulting
http://www.mactechnologies.com/

Need to develop, test, and refine regular expressions? Try RegExRX.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group