Load template with german umlaut

3 posts, 0 answers
  1. Alexandra
    Alexandra avatar
    16 posts
    Member since:
    Sep 2015

    Posted 07 Jul Link to this post

    Hi

    I have a kendo template that uses resources and one of the german resorces has an umlaut. The template is loaded using kendo.template and kendo.render.

    I found a link that complains about this http://www.telerik.com/forums/german-umlauts-not-working-in-listview%27s-client-template-when-coming-from-resources but the solution from there does not work: Html.Raw

    I have tried also 
    @Html.Raw(HttpUtility.HtmlEncode(Resources.GridSaveChanges).Replace("#", "\\#"))

    but it does not work.

  2. Tsvetina
    Admin
    Tsvetina avatar
    2087 posts

    Posted 10 Jul Link to this post

    Hello Alexandra,

    The other thread discusses a case, where the German umlaut is inside a ClientTemplate definition. If you are directly creating a template in JavaScript, you need to ensure that special symbols are escaped before passing the text to the template, as explained here:
    Hash Literals
    If the above article does not help, could you show the exact code that you use to create your template, so I can give you more specific suggestions to try?

    Regards,
    Tsvetina
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Alexandra
    Alexandra avatar
    16 posts
    Member since:
    Sep 2015

    Posted 14 Jul in reply to Tsvetina Link to this post

    Hi Tsvetina,

    Thank you for response. Indeed Html.Raw works. I was displaying something from a model property and did not realize that was coming also from resources. I manage to "solve" my issue by printing the template before rendering and saw there the # character that was not escaped.

Back to Top