tags:

views:

280

answers:

1

i am using jqplot to graph some data. my axis label has a micro in it. µ but it is being passed through as that and not an entity. here is the code

axes:{
    yaxis:{
        label:'L,µH',
        autoscale: true,
        labelRenderer: $.jqplot.CanvasAxisLabelRenderer
    }
}

is there a way to not have the entity be converted? thanks!

A: 

Not sure what your actual problem is, but you could try replacing

label:'L,µH',

with

label:'L,µH',

I don't really understand what you are saying


Huh...? Could you be more clear on what your real problem is???

Test site with µ and µ http://jsbin.com/olove

jqplot

Which one do you want? Both versions work first one displays the character Μι itself second one displays the html entity.

jitter
no that just passes through directly as it is. the problem is javascript doesnt recognize entities. it translates them so you dont get the character just the code...
liz
Check expanded answer. Really unclear what your problem is. Please be more clear. And if you mean that javascript e.g reports `"L,µH".length == 10` instead of `"L,µH".length == 4` remember that javascript isn't a html parser. To javascript this is just a normal string. Only when displayed the browser will convert the entity in the string to the actual character represented by the html-entity
jitter