Issue with non ascii hashtag translation

Julien Pitsch 0 Reputation points
2025-11-12T16:20:16.34+00:00

I notice translator is unable to translate non ascii hashtags like arabic one : #مرحبا_يا_عالم

Using this endpoint

https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=en

And with this body :

[ {
  "Text" : "#مرحبا_يا_عالم"
} ]

Is this expected ? Is there an option to translate this king of hashtag ?

Azure AI Translator
Azure AI Translator
An Azure service to easily conduct machine translation with a simple REST API call.
{count} votes

1 answer

Sort by: Most helpful
  1. Aryan Parashar 3,380 Reputation points Microsoft External Staff Moderator
    2025-11-14T07:30:48.4433333+00:00

    Hi Julien,

    I understand how this could be confusing, and I’m happy to clarify.

    The hash symbol (#) is not translated because it is not a word nor a part of the Arabic language.

    Translation engines are designed to translate linguistic elements—such as words, grammar, and meaning—rather than special characters or punctuation. As a result, Azure Translator does not offer an option to translate the # symbol into another form.

    Let me know if you have further queries.

    Thank you for reaching out to The Microsoft Q&A Portal

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.