You'll need too use the HTML encoded version of the characters, ie: ã = ã
used like this: ['Diversão','Cinema','Severiano Ribeiro'] On Thursday, May 24, 2012 11:04:37 PM UTC-4, trebew wrote: > > Hi... > > I found this nice google api just a couple of days and i'm trying to use > it but it doesn't work =/ > > In fact I know what's going wrong. I'm brazilian and the portuguese have > some special characters like á é í â ê ç and so on. When the data have one > of this characters ths script just don't work, for exemple: > > function drawVisualization() { > // Create and populate the data table. > var data = google.visualization.arrayToDataTable([ > ['Poduto','Desc_Produto','Descricao'], > ['Transporte','Combustível','Gasolina Comum'], > ['Diversão','Cinema','Severiano Ribeiro'] > ]); > > // Create and draw the visualization. > visualization = new google.visualization.Table(document.getElementById( > 'table')); > visualization.draw(data, null); > } > > The code above don't produce any output. It's because of words > 'Combustível' and 'Diversão'. Now if i change it to: > > function drawVisualization() { > // Create and populate the data table. > var data = google.visualization.arrayToDataTable([ > ['Poduto','Desc_Produto','Descricao'], > ['Transporte','Combustivel','Gasolina Comum'], > ['Diversao','Cinema','Severiano Ribeiro'] > ]); > > // Create and draw the visualization. > visualization = new google.visualization.Table(document.getElementById( > 'table')); > visualization.draw(data, null); > } > > Then it works just great. But I want to use those special characters. > Anyone knows how can I do this? > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/ovIubCQ4dQwJ. To post to this group, send email to google-visualization-api@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.