search for: encode_text

Displaying 2 results from an estimated 2 matches for "encode_text".

2008 Jun 18
1
Vpim gem
...lloyello.com and > it works great. I''m glad to hear that. > We''ve only encountered the following error: > # NoMethodError (undefined method `to_str'' for []:Array): > # > /usr/local/lib/ruby/gems/1.8/gems/vpim-0.619/lib/vpim/rfc2425.rb:256:in > `encode_text'' > Maybe it should state .to_s instead of .to_str ? I don''t have the code in front of me, but you are trying to encode a text field, it seems (#encode_text), so you need to pass it something that is "text", but are passing a compound data type (an Array). Using #to...
2006 Apr 02
4
Field#to_text
We''re using Vpim to parse iCal and vCard files, and so far it''s been great. However, when we were parsing some iCal files we noticed that all the endlines in the description section were disappearing. I start peering through the source code and find (in the Field#to_text method that is being called): # The value as text. Text can have escaped newlines, commas, and escape #