{"id":570,"date":"2004-09-19T20:48:24","date_gmt":"2004-09-19T18:48:24","guid":{"rendered":"http:\/\/vasil.ludost.net\/blog\/?p=570"},"modified":"2004-09-19T20:48:24","modified_gmt":"2004-09-19T18:48:24","slug":"2004-09-19-2048","status":"publish","type":"post","link":"https:\/\/vasil.ludost.net\/blog\/?p=570","title":{"rendered":"2004-09-19 20:48"},"content":{"rendered":"<p>Today I cleaned up my patch for <a href=\"http:\/\/gaim.sourceforge.net\/\">gaim<\/a>, to work with cyrillic. Now it looks like nicer, because they&#8217;ve moved the processing of the incoming messages in a separate function. What&#8217;s left is to find the documentation on the internal function that can check if message is valid utf8, and to use it, that will make it even shorter :) Whomever want it, can download it from <a href=\"https:\/\/vasil.ludost.net\/patches\/gaimdiff10\">https:\/\/vasil.ludost.net\/patches\/gaimdiff10<\/a>.<\/p>\n<p>How it works, in a few words: in the function gaim_plugin_oscar_convert_to_utf8 at the check of the encoding in the parameters of the message I&#8217;ve added a check if the message itself is pure UTF8 (isUTF8()). The other thing is the change of the default encoding (that should be a configuration option).<\/p>\n<p>I slept through the rest of the day, and I intend to go to sleep again in the next few hours.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I cleaned up my patch for gaim, to work with cyrillic. Now it looks like nicer, because they&#8217;ve moved the processing of the incoming messages in a separate function. What&#8217;s left is to find the documentation on the internal function that can check if message is valid utf8, and to use it, that will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-570","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/vasil.ludost.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vasil.ludost.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vasil.ludost.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vasil.ludost.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vasil.ludost.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=570"}],"version-history":[{"count":0,"href":"https:\/\/vasil.ludost.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/570\/revisions"}],"wp:attachment":[{"href":"https:\/\/vasil.ludost.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vasil.ludost.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vasil.ludost.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}