Anubhaw Prakash wrote: > Hi all. > I am having trouble in reading string containing special characters from > file and storing them in database. For example, for string like > '\x89\xA5\xCFI w...' > it throws error "Incorrect string value". The string should be wrappped > in duoble quotes, but i didn't find any method to do so. If any one has > solution please help. I need it very badly. > Thanks.
you can give .to_s to convert into string. a= 123 eg: a.to_s -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

