Forein language in photoshop

I’m trying to put Arabic text into my Photoshop file but the text isn’t connecting (arabic letters connect) so it doesn’t appear correct after I finish it…

for example كلمة is what i want but i’ll get

ك ل م ة

thanks for your help!

– Jordan