Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bandico0t 11 posts 48 karma points
    May 31, 2014 @ 12:28
    Bandico0t
    0

    GetDictionaryItem doesn't work in WebAPI

    I have umbraco 7.1.1 site. I have webapi method returns back a string. The string is constructed from a template. The issue I am having is that when in webapi i do GetDictionaryItem I get nothing back. The key and value definately exist becuase if I do GetDictionaryItem in template it works. How make it works?

    Ismail answer same question on umbraco 4.7.1 and he solved this by globalization directive in web.config. In my web.config I have added:

    <globalization requestEncoding="UTF-8" responseEncoding="UTF-8" fileEncoding="UTF-8" culture="ru-RU" uiCulture="ru-RU"/>
    

    But DictionaryItem still return empty string.

    Regards

    Anton

Please Sign in or register to post replies

Write your reply to:

Draft