Deductions & credits

Read the tax treaty with the country in question.  These issues may be addressed there.