Ruby encoding 1.8.7

Hi all,
i am using rails 2.2.2 and ruby 1.8.7 and sql server 2008. when i am
trying to save chinese string in database it is saving as
‘???’. What could be the problem, please help me.