You need to use the javascript unicode value for your characters, not the HTML unicode value. If you have a function that creates HTML-encoded characters, you can convert a character to javascript unicode with this:
function decodeHTMLUnicode (str) { var d = document.createElement('div'); d.innerHTML = str; return d.innerHTML; } call it like this: decodeHTMLUnicode('€'); This will decode any HTML-encoded unicode entities to their javascript equivalents. On Tuesday, August 5, 2014 6:36:43 PM UTC-4, uoʎɐↃ ɐᴚuɐnɾ wrote: > > Hi there and thanks in advance for any help provided. > > I'm coding a table in which one of the columns shows money-related cyphers > so, i set the column to number and format it with the f: ' whatever-format > ' option using a function that gives a string including the formated number > plus the currency symbol. > > The idea is that, for (let's say) a 55,2 value it should show 55,20 € once > formatted in the table or 55,20 $, etc. depending on the currency. > > The thing is that the function gives back a string, with the corresponding > currency symbol in unicode format, and the api table shows > 55,20 € > instead of > 55,20 € > So, is there any way i can mend it ? Needless to say that the formatting > function is from another api, and it formats the currency based on > user-configured options into the application. > thanks for your time!! > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.com. To post to this group, send email to google-visualization-api@googlegroups.com. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.