You'll get an exception thrown if you try to do this with non-ascii data--i.e. the weather in Paris. You must move "new InputSource(website.openStream())" out of the xr.parse method. Place it just above as another variable. And then run ".setEncoding("ISO-8859-1");" on that InputSource. This is because the XML data from the weather in Paris is of that encoding. Then you can place that new variable back in the xr.parse() method.
You'll get an exception thrown if you try to do this with non-ascii data--i.e. the weather in Paris. You must move "new InputSource(website.openStream())" out of the xr.parse method. Place it just above as another variable. And then run ".setEncoding("ISO-8859-1");" on that InputSource. This is because the XML data from the weather in Paris is of that encoding. Then you can place that new variable back in the xr.parse() method.
thisisridiculousyt 5 months ago
C-C-C-COMBOBREAKER
Jampurer 6 months ago
7th
ThatOneGuyWhoPwnz 6 months ago
6th! this is not a bad way to organize comments ;)
JFrameMan 6 months ago
5th
TheTurntaker 6 months ago
4th
utoostrict 6 months ago
third last.
Cezarijus 6 months ago
@Saintttimmy I second that
CamiloSanchez1979 6 months ago
first
Saintttimmy 6 months ago