Announcement

Collapse
No announcement yet.

Google Translator and accented characters problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by alexbk66 View Post
    Code:
    if (UrlEncode)
    text = HttpUtility.UrlEncode(text, Encoding.Default);
    else
    text = text.Replace(" ", "+");
    I'm using HttpUtility.UrlEncode
    There's so many C# functions for escaping URL strings... https://secretgeek.net/uri_enconding

    I found that Uri.EscapeDataString() works batter than HttpUtility.UrlEncode,

    I might try it... If you remind me exact issue. anhakkar

    Comment


      #17
      I have upgraded to HS4 a few months ago.

      Now that I tried this again, with several phrases, it seems to work correctly. I think Google needs enough input in order to recognize the language. Using just "Motörhead" as a test sentence will not work. However these sentences sound as they should, if the proper language is selected in the plugin settings:

      My favorite band is Motörhead. (en)
      Lempibändini on Motörhead. (fi)
      Mi banda favorita es Motörhead. (es)
      Meine Lieblingsband ist Motörhead. (de)

      So it seems that this is no longer an issue.

      Comment


        #18
        Originally posted by anhakkar View Post
        I have upgraded to HS4 a few months ago.

        Now that I tried this again, with several phrases, it seems to work correctly. I think Google needs enough input in order to recognize the language. Using just "Motörhead" as a test sentence will not work. However these sentences sound as they should, if the proper language is selected in the plugin settings:

        My favorite band is Motörhead. (en)
        Lempibändini on Motörhead. (fi)
        Mi banda favorita es Motörhead. (es)
        Meine Lieblingsband ist Motörhead. (de)

        So it seems that this is no longer an issue.
        When upgrading my plugin to HS4 I also made lots of improvements, including proper escaping of strings sent to Google.

        Comment

        Working...
        X