<NME> TranslationUtils.java
<BEF> package cgeo.geocaching.utils;

import cgeo.geocaching.R;

import android.content.Intent;
import android.net.Uri;

import java.net.URLEncoder;


import org.apache.commons.lang3.StringUtils;

/**
 * Utilities used for translating
    private static final String translationWebsite = "http://translate.google.com/";
    private static final String translationForceClassicMode = "?vi=c";
    private static final String translationAutoSelect = "#auto";
    private static final String translationFieldSeparator = "|";

    public static final int translationTextLengthToWarn = 500;


    private static final int TRANSLATION_TEXT_LENGTH_WARN = 500;
    private static final String TRANSLATION_APP = "com.google.android.apps.translate";

    private TranslationUtils() {
        // utility class
    }
     * @return URI ready to be parsed
     */
    public static String buildTranslationURI(final String toLang, final String text) {
        return translationWebsite + translationForceClassicMode + translationAutoSelect + translationFieldSeparator + toLang + translationFieldSeparator + URLEncoder.encode(text).replace("+", "%20");
    }

    /**
     */
    private static String buildTranslationURI(final String toLang, final String text) {
        String content = Network.encode(text);
        // the app works better without the "+", the website works better with "+", therefore assume using the app if installed
        if (ProcessUtils.isLaunchable(TRANSLATION_APP)) {
            content = StringUtils.replace(content, "+", "%20");
        }
        return TRANSLATION_WEBSITE + TRANSLATION_FORCE_CLASSIC_MODE + TRANSLATION_AUTO_SELECT + TRANSLATION_FIELD_SEPARATOR + toLang + TRANSLATION_FIELD_SEPARATOR + content;
    }

    /**
     * Send Intent for Google Translate. Should only be used if InAppTranslationPopup is not available.
     *
     * @param activity The activity starting the process
     * @param toLang   The two-letter lowercase ISO language codes as defined by ISO 639-1
     * @param text     The text to be translated
     */
    public static void startActivityTranslate(final Activity activity, final String toLang, final String text) {
        if (text.length() > TRANSLATION_TEXT_LENGTH_WARN) {
            ActivityMixin.showToast(activity, R.string.translate_length_warning);
        }
        activity.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(buildTranslationURI(toLang, text))));
    }

    public static boolean supportsInAppTranslationPopup() {
        return Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && ProcessUtils.isLaunchable(TRANSLATION_APP);
    }

    public static void startInAppTranslationPopup(final Activity activity, final String text) {
        if (!supportsInAppTranslationPopup()) {
            return;
        }

        final Intent intent = new Intent();
        intent.setType("text/plain");
        intent.setAction(Intent.ACTION_PROCESS_TEXT);
        intent.putExtra(Intent.EXTRA_PROCESS_TEXT, text);
        intent.putExtra(Intent.EXTRA_PROCESS_TEXT_READONLY, true);
        intent.setPackage(TRANSLATION_APP);
        activity.startActivity(intent);
    }
}

<MSG> Merge pull request #1954 from Buuhuu/master

Fixed Issue #1915
<DFF> @@ -4,6 +4,7 @@ import cgeo.geocaching.activity.AbstractActivity;
 
 import android.content.Intent;
 import android.net.Uri;
+import android.text.Html;
 
 import java.net.URLEncoder;
 
@@ -15,7 +16,7 @@ public final class TranslationUtils {
     private static final String translationWebsite = "http://translate.google.com/";
     private static final String translationForceClassicMode = "?vi=c";
     private static final String translationAutoSelect = "#auto";
-    private static final String translationFieldSeparator = "|";
+    private static final String translationFieldSeparator = "/";
 
     public static final int translationTextLengthToWarn = 500;
 
@@ -29,7 +30,7 @@ public final class TranslationUtils {
      * @return URI ready to be parsed
      */
     public static String buildTranslationURI(final String toLang, final String text) {
-        return translationWebsite + translationForceClassicMode + translationAutoSelect + translationFieldSeparator + toLang + translationFieldSeparator + URLEncoder.encode(text).replace("+", "%20");
+        return translationWebsite + translationForceClassicMode + translationAutoSelect + translationFieldSeparator + toLang + translationFieldSeparator + URLEncoder.encode(Html.fromHtml(text).toString());
     }
 
     /**

Merge pull request #1954 from Buuhuu/master