I''m sending a string through a socket connection from a rails app to another application. The string is delimited with 240.chr. On windows it runs fine, on Linux, it seems to put in a different looking character in for 240.chr. Is this some sort of encoding issue? Is there something simple I am overlooking? Thanks, RVic. delim = 240.chr if userSelected.blank? userSelected = userSending end s=row.to_s+delim+userSending+delim+userSelected+delim+message+delim+notes -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9121d0f4-086a-4a58-95f7-88f5e5d3ff49%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On Nov 7, 2013, at 7:54 PM, RVic <rvince99-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> I''m sending a string through a socket connection from a rails app to another application. The string is delimited with 240.chr. On windows it runs fine, on Linux, it seems to put in a different looking character in for 240.chr. Is this some sort of encoding issue? Is there something simple I am overlooking? Thanks, RVic. > > delim = 240.chr > if userSelected.blank? > userSelected = userSending > end > s=row.to_s+delim+userSending+delim+userSelected+delim+message+delim+notesIf you’re using 240.chr as a delimiter, what difference does it make what the Glyph looks like? The other side should just split on 240.chr. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9722E365-1223-45B1-8D68-EFD878788444%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
I would think so, but the other side is a java socket listener app, and it isn''t splitting on it in Linux, but is on Windows. On Thu, Nov 7, 2013 at 9:16 PM, Tamara Temple <tamouse.lists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> > On Nov 7, 2013, at 7:54 PM, RVic <rvince99-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > I''m sending a string through a socket connection from a rails app to > another application. The string is delimited with 240.chr. On windows it > runs fine, on Linux, it seems to put in a different looking character in > for 240.chr. Is this some sort of encoding issue? Is there something simple > I am overlooking? Thanks, RVic. > > > > delim = 240.chr > > if userSelected.blank? > > userSelected = userSending > > end > > > s=row.to_s+delim+userSending+delim+userSelected+delim+message+delim+notes > > If you’re using 240.chr as a delimiter, what difference does it make what > the Glyph looks like? The other side should just split on 240.chr. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/rubyonrails-talk/S36a7FtBdnU/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/9722E365-1223-45B1-8D68-EFD878788444%40gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAAHNhKX_0UMiR8MKEw%3DnKjFvyxsyWhPcGoeian5%3DyHAPbr_RvQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
On Nov 7, 2013, at 8:20 PM, R Vince <rvince99-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I would think so, but the other side is a java socket listener app, and it isn''t splitting on it in Linux, but is on Windows. > > > On Thu, Nov 7, 2013 at 9:16 PM, Tamara Temple <tamouse.lists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On Nov 7, 2013, at 7:54 PM, RVic <rvince99-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > I''m sending a string through a socket connection from a rails app to another application. The string is delimited with 240.chr. On windows it runs fine, on Linux, it seems to put in a different looking character in for 240.chr. Is this some sort of encoding issue? Is there something simple I am overlooking? Thanks, RVic. > > > > delim = 240.chr > > if userSelected.blank? > > userSelected = userSending > > end > > s=row.to_s+delim+userSending+delim+userSelected+delim+message+delim+notes > > If you’re using 240.chr as a delimiter, what difference does it make what the Glyph looks like? The other side should just split on 240.chr.You need to be looking at the binary data stream to see what is being sent/received. Don’t look at the glyphs at all. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/A40941C7-3097-43C0-9B7D-6071987C4B1F%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
On Thu, Nov 7, 2013 at 9:32 PM, Tamara Temple <tamouse.lists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> > > You need to be looking at the binary data stream to see what is being > sent/received. Don’t look at the glyphs at all. > > -Yes, you;re right -- I need to open up the receiving end and see what it''s drinking in. Thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAAHNhKUBBjuBHr32jv8Te1j%3D%3DsJc2Hzc_Dy2bCGQjNFNmKYvLw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.