Hi, On Fri, 2014-08-01 at 12:53 +0300, Jukka Rissanen wrote: > Hi Lorn,
> > + result = g_convert_with_fallback((const char *)ssid, -1, > > + "UTF-8", "ISO-8859-1", > > + 0, 0, > > + &bytes_written, &error); > > SSID's are just byte arrays, how can we know which codeset we are > converting from (you assume ISO-8859-1 here)? We do not know the charset used for the SSID, so we can't do it like this. The code below this patch goes through the SSID character by character until it encounters a non-UTF-8 one. The offending characters are replaced by the U+FFFD replacement character and thus the procedure stitches up the name to be UTF-8 compliant. Cheers, Patrik _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman