Parenting bones to character mesh
The problem is that your rest pose is different from your pose position. To fix this:


Switch to Pose Mode
Select all Bones with A
Hit Space bar
Select Apply Pose as Rest Pose
Switch to object Mode
Select Your mesh first then select the armature using Shift+Right Mouse Click
Hit Ctrl+P then choose Automatic Weighting and this will fix your problem as shown below