Hi, I am a real newbie, so please excuse if my question is trivial. I am trying to translate a text which comes from a (UTF-8 coded) database (mysql). So a simple: ------------------------------------ Dies ist ein Test Versuch
Noch ein Versuch ------------------------------------ does not compute in: ----------------------------------- google.load("language", "1"); function initialize() { google.language.translate(<?PHP echo "\"". $text_to_translate."\", "de", "es", function(result) { if (!result.error) { var container = document.getElementById("translation"); container.innerHTML = result.translation; } }); } google.setOnLoadCallback(initialize); ----------------------------------- whereas it does when I just use the first line of the German text without any newlines. I tried nl2br -but no change. How do I get "translate" to translate for example complete HTML input - or at least $text which contains newlines and other special chars? Greets Dennis -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to google-ajax-search-...@googlegroups.com. To unsubscribe from this group, send email to google-ajax-search-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.