• Hi folks,
    WordPress is one of the best, but still is not so popular in Russia, as other blogs, created by Russian programmers. I tried them too, but could not make them working on Windows hosting… So, I chose WP, but now I stuck with the encoding problem. I am sure, WP can display Russian fonts, because it’s realized here, as an Example: https://gsm-opt.com.ua/d2d/index.php?p=49
    I asked this guy, but he did not have much time for me. As all busy programmers he confused me with some terms and that’s it…:)
    He said:
    1) All htmlentities() schould be changed to htmlspecialchars() . (Where I should find it, he did not said.)
    2) And one html-function should be patched. (which one, he did not said).
    Could you please develop this topic, so that my WP-blog writes in Russian.
    One more thing. Links, Catagories show Russian without any problems. But the Blog name, comments, posts are not…
    Anton.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Am not a really programmer, am a web/flash designer ?? But thanks for a nice words ??

    Thread Starter antonskij

    (@antonskij)

    It’s all done! It works, as Yutti said.
    One thing only. I was not smart enough to complete the item 2) in his description, so he had to give me extra instructions. The code shoule be changed so:
    AFTER the string
    global $use_htmltrans, $wp_htmltrans, $wp_htmltranswinuni;
    we put: /*
    AND BEFORE
    $content = str_replace(“<br>”,”
    “,$content);
    $content = str_replace(“<hr>”,”<hr />”,$content);
    we put: */
    Now it’s Ok.
    Thank you so very much for your generous help!
    Anton.

    donangel

    (@donangel)

    Thank you a lot, guys, for your help. I’ve patched the version and uploaded the patched source on my site. If anyone interested – see this article:
    https://doncho.net/blog/index.php?p=4
    and this article (about how I missed to patch the RSS feeding)
    https://doncho.net/blog/index.php?p=8
    On that article you will find the patched version, available for download.

    kashirow

    (@kashirow)

    Why win-1251?! What for?! You might’ve had to do the htmlentities patching in 0.72, (I don’t remember if I did that or not) but not in 1.01.
    Just replace all occurences of iso-8859-1 with utf-8 throughout the source, set the use_htmltrans option in configuration to false, set rss language to ru, and it works right out of the box, no further changes necessary, and certainly no patches. You just enter your blog entries in utf-8 and it stores them like this with no problems. And it doesn’t limit you to cyrillic. Worked for me just fine since the last upgrade.
    Getting the blog by email to work with cyrillic, now that takes a lot more work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cyrillic in WordPress’ is closed to new replies.