[Rails] 240.chr different on Linux than Windows?
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
-- 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@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home