couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <jch...@apache.org>
Subject Re: bad_utf8_character_code
Date Tue, 14 Apr 2009 18:12:02 GMT
On Tue, Apr 14, 2009 at 10:39 AM, Chris Farmiloe <chrisfarms@oxdi.eu> wrote:
>
> A strange character has gotten into several of my documents and is
> preventing any of my views from working raising:
>

If it is possible to create a reproducible test case we can work to
prevent bad characters from getting saved in the first place.

> {error_info,
>           {exit,
>               {ucs,{bad_utf8_character_code}},
>               [{xmerl_ucs,from_utf8,1},
>                {mochijson2,json_encode_string,2},
>                {mochijson2,'-json_encode_proplist/2-fun-0-',3},
>                {lists,foldl,3},
>                {mochijson2,json_encode_proplist,2},
>                {couch_httpd,send_json,4},
>                {couch_httpd,handle_request,4},
>                {mochiweb_http,headers,5}]}},
>
> Would it not be better if couch simply left a warning in the log and
> returned the documents without the characters that the ucs could not
> understand?
>

Ideally we'd block the bad characters from ever being saved in the first place.


-- 
Chris Anderson
http://jchrisa.net
http://couch.io

Mime
View raw message