Hi,

I get following error:

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 1: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xE4 0x74 0x74 0x2C in googleWeather->request_data() (line 43 of /var/www/vhosts/xn--mydomain.de/httpdocs/sites/all/modules/google_weather/google_weather.inc).

Warning: simplexml_load_string() [function.simplexml-load-string]: mobile_zipped="1" row="0" section="0" >request_data() (line 43 of /var/www/vhosts/xn--mydomain.de.de/httpdocs/sites/all/modules/google_weather/google_weather.inc).

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in googleWeather->request_data() (line 43 of /var/www/vhosts/xn--mydomain.de/httpdocs/sites/all/modules/google_weather/google_weather.inc).

Any idea?

Comments

maynardo’s picture

I have the exact same issue but it is with the new beta-2. Please help!

maynardo’s picture

I managed to fix it, went to google_weather.inc mentioned in the warning and just above the line 43 I uncommented this:

if (mb_detect_encoding($data, 'UTF-8', TRUE) !== 'UTF-8') {
$data = utf8_encode($data);
}

bye bye triple warning. Hope it helps someone

damiankloip’s picture

@maynardo, Not sure why this got commented out. There was a reason at the time :) It certainly needs to go back in though.

@jospBln, next time please provide more info - rather than just copy and pasting an error message.

What languages etc.. are you guys using? just out of interest...

maynardo’s picture

@damiankloip I'm using spanish

jospBln’s picture

@damiankloip I'm using german

damiankloip’s picture

Status: Active » Fixed

uncommented, will be in next release, with field support.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.