Consider the function:
unicode[numericLetters_List]:=StringJoin@Reverse@Cases[numericLetters,x_:>If[x!=" ","\:"<>x,x]];
now
unicode[{"06af", "0648", "0644"}]
prints "\\:0644\\:0648\\:06af"
instead of "\:0644\:0648\:06af"
How do i fix this?
I guess that you might want to get the characters to be shown, then you might need FromCharacterCode. So I suggest to define your unicode function in this way:
unicode[code_List] := FromCharacterCode[FromDigits[#, 16]] & /@ Reverse@code // StringJoin
unicode[{"06af", "0648", "0644"}]
"لوگ"
unicode[{"06af", "0648", "0644"}] // FullForm. $\endgroup$\\:while\:would have converted the successive characters into a corresponding Unicode character. $\endgroup$FromCharacterCode[FromDigits[#, 16]] & /@ Reverse @ {"06af", "0648", "0644"}. You may useStringJoinafterwards. $\endgroup$