Fix Broken Category Class Title in SharePoint 2010 Blog site

December 12 2012 13 comments

There is an old bug in SharePoint 2010 that surfaces to me from time to time: blog site category title doesn’t render correctly if it contains some funny foreign characters we Finnish like to use in our language.

The power of umlauts is too much for this blog

The reason I’m writing this down right now is that I’ve got a case tomorrow at work where I have to fix this. This happens on a regular basis and I always write the fix from the scratch. Only this time, I don’t have to do it. I’ve got the CTRL-C / CTRL-V solution right here.

Buğra Postacı has blogged a solution that involves SharePoint Designer and manual labour earlier this year. As I’m not a fan of either I decided to use some nasty client script to hack the problem.

But let’s start with CSS!

Those question marks look weird in the category title, let’s get rid of the title by applying a CSS display: none.  As we’re going to use JavaScript for our fix, it will take a few milliseconds to complete. I’m doing this CSS hiding to prevent flicker until the JS kicks in. Pure optional, that is. { display: none;}

Let's hide the title with a bad word, there might be children watching

The Javascript

I’m going to be using my favourite DOM manipulation library, jQuery combined with some vanilla JS but you can use whatever works for you. I’m just using the jQuery to find the element, so it is a bit of an overkill here but this is just an example.

First we need a helper function getUrlVars() to parse the URL and get to the hash. We will be using that to get the category name.

function getUrlVars() {
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
    for (var i = 0; i < hashes.length; i++) {
        hash = hashes[i].split('=');
        vars[hash[0]] = hash[1];
    return vars;

When the page is ready, we set the textual content of the category title to the decoded hash value and show the element (it was initially hidden with CSS). I’m using PageLoad() here because the page I’m using has a postback but once again you can use whatever works for you.

function pageLoad() {

Which translates to:

The Iceman cometh!

That’s all there really is to it. Have fun.

Popularity: 3% [?]

13 comments to “Fix Broken Category Class Title in SharePoint 2010 Blog site”

  1. Jukka Kotamäki says:

    Great Article, Tuukka!

    Another option would be to create a small feature, which will copy to Layouts\XML\Blog.xsl – file to a new name and copy a new blog.xsl file to that folder. This blog.xsl file has only one difference: there’s a place where the “safe characters” are defined: just add to the list ÄÖÅ and äöå characters :-) and by magic the blog starts to work.

    More precise: search for and a place:


  2. Jukka Kotamäki says:

    oops, the previous comment seemed to lost the thing what to search for: template name=”url-encode”.

    Hope nothing is missing now when I hit Submit :-)


  3. Carl says:

    Hi there colleagues, how is everything, and what you want to say regarding
    this paragraph, in my view its in fact awesome in favor of me.

  4. We produce Bitcoin miners and Bitecoin miners. We are the direct vendor.

  5. Hello, I wish for to subscribe for this web site to get newest updates,
    therefore where can i do it please help.

  6. magnificent issues altogether, you simply received a new reader.
    What would you suggest in regards to your publish
    that you just made a few days ago? Any sure?

  7. Many thanks, this website is really practical

  8. nba mt coins says:

    Many thanks, this website is really helpful

  9. madden 17 says:

    Great looking site. Assume you did a great deal of your ownyour very own html coding

  10. Thanks very beneficial. Will certainly share site with my buddies

  11. Hope you will not get tired on making posts as informative as this.

  12. Sexy Bikini Swimsuit
    “This world doesn belong to them” doesn have to mean the literal entire
    world (at least, not yet). At this point I think control of the park, where they always lived, is the goal.
    I think Dolores speech to Teddy on the beach backs that up a bit.
    At Men’s Warehouse, one will find a larger selection it is a
    warehouse, after all but the quality still trends towards suits that look
    good from afar. Many suits can be made to look good from a distance, and again, if you are on a budget, this may be exactly what you are looking for.
    Their suits can be on the flashy side.

    cheap bikinis The law firm may also be sanctioned, or even held in contempt.
    Tax Court decision was “maintained primarily for delay” or where “the taxpayer’s position in the appeal is frivolous or groundless.”[1]
    A common example, as shown below, is an argument based on tax protestor claims.
    Courts of Appeals where litigation by the losing party has caused damage to
    the prevailing party, the court may impose a requirement that the losing party pay the prevailing party for those damages.[6].
    cheap bikinis

    Tankini Swimwear It always a bonus if that comment happens to
    be all of the above and also wrong, but that not a requirement.Rule 3: You
    can either link directly to a comment/discussion or you can post screen shots if you
    don want to link directly to the comments. If you using a source outside of Reddit you can link
    directly or take a screenshot, but screenshots are preferred.Rule 4:
    You can post comment chains that you involved in. Just don start an argument and post it here.
    Tankini Swimwear

    Cheap Swimsuits There was a post of a Christian asking questions about gay people.
    The fact that he tries to educate himself about us, opens his mind
    is something we should encourage, but instead all the top comments ridicule his diction, attack his belief and
    call him names because he uses the word “choice”.
    If he were any hateful Christian, he wouldn have bothered asking,
    he just declare it a choice. Cheap Swimsuits

    beach dresses And maybe you think that saying that is per
    se normalizing racism.(e) Even so, this isn the
    kind of thing the racism rule is aimed at, in my opinion. The racism rule
    is aimed at things like the comments that I deleted (and banned the poster)
    that consist of nothing other than the n word. It certainly
    colors the other points anyway. beach dresses

    Sexy Bikini Swimsuit I do, however, think we need a system in place
    to provide confidential professional therapy, medical help and treatment to
    pedophiles who haven committed a crime. There not many places that help with
    that, and places like r/pedofriends are not helping anyone, and just fostering an environment
    that encourages them and discourages them to seek help. It like Fat Acceptance on a much worse level..
    Sexy Bikini Swimsuit

    Bathing Suits Their treatment of Luke I actually loved from the start, EXCEPT moments played for pure comedic value (throwing the light saber after such a hugely emotional
    moment, and the milking scene which was completely unnecessary).
    My issues are more with the Canto Bight plotline (weak
    characters, weak writing, weak plot)!and some tonal issues (turning every serious moment into a joke).
    But on the whole, this is the most memorable Star Wars
    for me so far. Bathing Suits

    wholesale bikinis The release of Harry Potter and the
    Philosopher Stone (released as Harry Potter and the Sorcerer Stone
    in the United States) took place in 2001. The story follows Harry, a young boy who learns
    he is a wizard and is sent to Hogwarts School of Witchcraft and Wizardry to begin his education; gaining the
    help of friends Ron (Rupert Grint) and Hermione (Emma Watson) along the way.

    Radcliffe received a seven figure salary for the lead role,
    but asserted that the fee was that important to him; at all of the most current short article on our blog.

    wholesale bikinis

    bikini swimsuit I do not blame you or condemn you, and I promise, staff is generally pretty perceptive to
    why families aren visiting. Again, this was not a condemnation of family
    members who are NC, who are absent, who are removed,
    etc.I am really appreciative of this conversation and I hope
    that this spurs you to have conversations with yourself/spouse/sibling/parent/etc about later in life planning.

    Maybe it made you think about money in a new way, saving, etc
    because it is not cheap to have care in the home or to be in a facility bikini swimsuit.

Leave a Reply