Recent Topics

UTF-8 problem in XMLRPC (with remote edit tools)

Started by on Oct 11, 2006 – Contents updated: Oct 11, 2006

Oct 11, 2006 13:01    

A problem found while trying out Ecto (an offline blogging tool) - language special characters (in Unicode) are replaced by garbage in the blog posts read by Ecto.

See screenshot: http://captsolo.net/info/my-img/2006/10/ecto-test.png

The distortion of characters happens in the XMLRPC interface of b2evolution: http://bb.infinite-sushi.com/viewtopic.php?t=2015

Fixed this distortion by commenting out these 2 lines in xmlrpc_encode_entities:

                        //      if ($code < 32 || $code > 159)
                        //              $character = ("&#".strval($code).";");

But there is a similar problem when posting blog entries containining language special characters (i tried Latvian and Russian) to b2evolution via XMLRPC - they all get turned into '?'.

In Ecto debug console I see that post content is submitted with Unicode characters still in place.

Has anyone seen this problem before and can recommend how to fix it?

I am using b2evo 0.9.2, Ecto 2.1.7 and Blogger API (other API choices in Ecto are MetaWeblog, MovableType and Atom).


Form is loading...

Open Source CMS – This forum is powered by b2evolution CMS, a complete engine for your website.