Displaying 1 result from an estimated 1 matches for "bdrbjobqueue".
2009 Mar 27
1
UTF8 postgres args saving issue
...9;'t sure if it would un-encode. So I implemented the fool proof option
of Base64 encoding the data, which means never having to worry about
encoding again (because this is not the first time I''ve had a character
encoding issue)
Here''s the bulletproof hack that I added to my BdrbJobQueue
...
#these accessors get around any possible character encoding issues with
the database
def args=(args)
write_attribute(:args, Base64.b64encode(args))
end
def args
Base64.decode64(read_attribute(:args))
end
...
Hope that helps someone. It will help anyone who has the problem r...