balazs-endresz / jquery-translate

Automatically exported from code.google.com/p/jquery-translate
5 stars 5 forks source link

issues with   characters #49

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In some cases nbsp; characters disappear, which might break the layout of the 
page.

On the other hand they might also show up as visible characters, see issue 45

Original issue reported on code.google.com by balazs.endresz on 25 Aug 2010 at 5:52

GoogleCodeExporter commented 9 years ago
In the following example the place of the   character in the translation 
cannot be reliably determined, so it will be removed:

google.language.translate("<div>This is some   text.</div>", "en", "de", 
function(r){console.log(r.translation)})

but it stays there in this case:

$.translate("<div>   </div>", "en", "de", function(tr){console.log(tr)});

Original comment by balazs.endresz on 11 Mar 2011 at 7:40