implemented the function&#39;s A version by translating the parameters to Unicode and calling W version.<br>