[Developers] mqlwrite error: codec can't decode bytes in position 4-6: invalid data
Ben Drees
ben at metaweb.com
Fri Sep 26 05:56:33 UTC 2008
Augusto,
I think you are POSTing ISO-8859-1 rather than UTF-8.
The accented e arrives as hex bytes 25 45 39 ("%E9"). These get
form-decoded to hex byte E9,
which is not valid UTF-8. The Unicode code point is U+00E9, so Aseem's
fix should work. The
actual UTF-8 bytes would be hex C3 A9.
-Ben
Aseem Mohanty wrote:
> Hi Augusto,
>
> This seems to be a shortcoming in the JSON libraries we use. We are
> working on a fix. For the time being you can try using the unicode point
> for the e with an accent: \u00e9 instead.
>
> If that does not work please let us know.
>
> AM
>
> Augusto Callejas wrote:
>
>> hi-
>>
>> i get this error, i assume its because of the character ��.
>> this is on sandbox, not production server.
>>
>> ===
>> { "query139" : { "query" : [ { "create" : "unconditional",
>> "type" : "/business/company", "id" : null, "/type/object/name" : [
>> "Glac�au's Vitamin Water" ] } ] } }
>> ---
>> { "status":"500 Internal Server Error", "code":"/api/status/error",
>> "messages":[ "'utf8' codec can't decode bytes in position 4-6: invalid
>> data" ],
>> "transaction_id":"cache;cache01.sandbox.sjc1:8101;2008-09-25T20:18:36Z;0003"
>> }
>> ===
>>
>> is there any way around problem?
>>
>> thanks,
>> augusto.
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Developers mailing list
>> Developers at freebase.com
>> http://lists.freebase.com/mailman/listinfo/developers
>>
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
>
More information about the Developers
mailing list