Skip to content

“shields-up”

The truth lies half way down the slippery slope… (Shields’ Axiom)

Menu
  • Home
  • about
  • warp speed
Menu

בראשית or ΕΝ ΑΡΧΗ or “in the beginning” part II

Posted on Sunday, 28th September, 2008Sunday, 28th September, 2008 by martin

OK, I’ve been having some trouble getting unicode to display with WordPress, I tried upgrading, but nothing seemed to work. Finally I managed to get it working by editing wp-includes/wp-db.php and commenting out the lines setting the $collation_query to “SET NAMES utf8”. For some reason, this now seems to have things working and I can (at last) finish off my first real post on the blog (coming soon)!

Just for good measure, here’s a little unicode Hebrew: בראשית ברא אלהים את השמים ואת הארץ.

6 thoughts on “בראשית or ΕΝ ΑΡΧΗ or “in the beginning” part II”

  1. Martin Shields says:
    Saturday, 28th February, 2009 at 12:33 am

    And here is a quick comment to determine whether Hebrew is working in the comments as well!
    בראשית ברא אלהים את השמים ואת הארץ

  2. martin says:
    Monday, 7th September, 2009 at 12:58 am

    With newer versions of WordPress the code here has changed and my “hack” to fix the problem is to comment out the two lines in the wp-db.php file in the __construct function which are:

    if ( defined(‘DB_CHARSET’) )
    $this->charset = DB_CHARSET;

  3. Mitchell Powell says:
    Saturday, 2nd January, 2010 at 8:54 am

    Hello, Mr. Shields!

    Thanks for the advice you left on my recent post lamenting my problems with getting wordpress to show Greek characters. Forgive my technical ignorance, but where do I find this wp-dp.php file? If I can just find it, I should have no problem implementing the edit you suggested, but I’m not seeing it.

    Thanks again and a happy New Year,

    Mitchell.

  4. Mitchell Powell says:
    Saturday, 2nd January, 2010 at 9:08 am

    Nevermind. I worked it out. Thanks for the help!

  5. martin says:
    Saturday, 2nd January, 2010 at 9:48 am

    Mitchell, no worries. I’ve just worked out another way to achieve the same end: edit the wp-config.php file and change the line:

    define('DB_CHARSET', 'utf8');

    to:

    define('DB_CHARSET', '');

    This has the same effect.

    I note you’ve got a problem with non-breaking spaces now not displaying correctly. I don’t double-space text myself (not in line with most modern typesetting guidelines), but I’ll see if I can reproduce and fix the problem.

  6. Mitchell Powell says:
    Saturday, 2nd January, 2010 at 10:51 am

    As to double-spacing, I realize I shouldn’t, but it was drilled into my head by an elderly but incredibly effective and strict typing teacher. It is only thanks to her that I can type effectively at all, rather than hunting and pecking. I’ve found a rather simple way to fix the non-breaking spaces (using find-replace in OpenOffice, one post at a time), so there’s no need to trouble yourself unless you find it interesting for its own sake. Again, thanks for the help.

Leave a Reply

Your email address will not be published. Required fields are marked *

  • 1 timothy
  • 1kings
  • Accordance
  • Apple
  • archaeology
  • bible
  • blogging
  • Book Review
  • Books
  • dead sea scrolls
  • deuteronomy
  • exercise
  • genesis
  • greek
  • hebrew
  • isaiah
  • jeremiah
  • job
  • judges
  • languages
  • matthew
  • mellel
  • music
  • new testament
  • old testament
  • physics
  • proverbs
  • psalms
  • qohelet
  • sci fi
  • science
  • song of songs
  • theodicy
  • theology
  • translation
  • uncategorized
  • weather
  • wikipedia
  • wisdom literature
  • February 2025
  • January 2024
  • January 2023
  • October 2022
  • September 2022
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • October 2015
  • August 2015
  • February 2015
  • January 2015
  • February 2014
  • October 2013
  • September 2013
  • July 2013
  • June 2013
  • March 2013
  • May 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
© 2025 “shields-up” | Powered by Minimalist Blog WordPress Theme