I am using the JAK library to generate some KML and creating a style. For some reason the URL is being malformed and its turning '&' into '&'
document.createAndAddStyle().withId("styleTest").createAndSetIconStyle().withScale(1.399999976158142).withIcon(new Icon().withHref("http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|" + ffffff ));
Result
http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|
What I need
http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|
I didnt think it was java causing the problem but I could be wrong.
The value seems to be correct all the way up until its written using .marshall()
I dont think cdata will work
 <Style id="randomColorIcon">
            <IconStyle>
                <scale>1.399999976158142</scale>
                <heading>0.0</heading>
                <Icon>
                    <href>http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|ff0000</href>
                    <refreshInterval>0.0</refreshInterval>
                    <viewRefreshTime>0.0</viewRefreshTime>
                    <viewBoundScale>0.0</viewBoundScale>
                </Icon>
            </IconStyle>
        </Style>
Cdata approach results in
 <href><![CDATA[http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|ff0000]]></href>
String high = "<